summaryrefslogtreecommitdiff
path: root/server/src/vm/vm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r--server/src/vm/vm.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index f78f2690..ad25235c 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -54,10 +54,12 @@ function mt:buildTable(source)
key:bindValue(value, 'set')
if key.index then
local index = self:getIndex(key)
+ key:set('parent', tbl)
tbl:addInfo('set child', key, index)
tbl:setChild(index, value)
else
if key.type == 'name' then
+ key:set('parent', tbl)
key:set('table index', true)
tbl:addInfo('set child', key, key[1])
tbl:setChild(key[1], value)