summaryrefslogtreecommitdiff
path: root/server/src/emmy/manager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/emmy/manager.lua')
-rw-r--r--server/src/emmy/manager.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/server/src/emmy/manager.lua b/server/src/emmy/manager.lua
index 9b6978b9..fc7180bd 100644
--- a/server/src/emmy/manager.lua
+++ b/server/src/emmy/manager.lua
@@ -110,13 +110,9 @@ function mt:addType(source)
end
function mt:addArrayType(source)
- local typeObj = newArrayType(self, source)
- local typeUnit = newTypeUnit(self, source)
- local list = self:getClass(source[1])
- typeUnit:setParent(typeObj)
- list[source.id] = typeUnit
- source:set('emmy.typeUnit', typeUnit)
- return typeObj
+ local typeObj = self:addType(source)
+ local arrayTypeObj = newArrayType(self, source, typeObj)
+ return arrayTypeObj
end
function mt:addTableType(source, keyType, valueType)