From 632f171ef0b7f4a6fc6d9c789430a7026335b03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 12 Mar 2019 15:46:12 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/vm.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/src') 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) -- cgit v1.2.3