diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/emmy/manager.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/emmy/manager.lua b/server/src/emmy/manager.lua index fc7180bd..d7edbadb 100644 --- a/server/src/emmy/manager.lua +++ b/server/src/emmy/manager.lua @@ -100,9 +100,11 @@ function mt:addType(source) for i, obj in ipairs(source) do local typeUnit = newTypeUnit(self, obj) local className = obj[1] - local list = self:getClass(className) + if className then + local list = self:getClass(className) + list[source.id] = typeUnit + end typeUnit:setParent(typeObj) - list[source.id] = typeUnit typeObj._childs[i] = typeUnit obj:set('emmy.typeUnit', typeUnit) end |