From 9c1b6cd37da1224e6202c0e2849f97b22426fadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 25 Mar 2019 19:30:47 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=9C=A8=E5=87=BD=E6=95=B0=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=A4=84=E5=8F=AF=E8=83=BD=E6=97=A0=E6=B3=95=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=88=B0=E6=89=80=E6=9C=89=E5=BC=95=E7=94=A8=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/vm.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/src/vm') diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index 0f0de9fe..b5ffa459 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -926,9 +926,11 @@ function mt:doFunction(action) if source.type == 'index' then local index = self:getIndex(source) parent:setChild(index, value, source[1]) + parent:addInfo('set child', source, index) elseif source.type == 'name' then local index = source[1] parent:setChild(index, value, source) + parent:addInfo('set child', source, index) end source:bindValue(value, 'set') @@ -948,12 +950,15 @@ function mt:doFunction(action) local value = self:buildFunction(action) local source = name[#name] self:instantSource(source) + source:set('parent', parent) if source.type == 'index' then local index = self:getIndex(source) parent:setChild(index, value, source[1]) + parent:addInfo('set child', source, index) elseif source.type == 'name' then local index = source[1] parent:setChild(index, value, source) + parent:addInfo('set child', source, index) end source:bindValue(value, 'set') end -- cgit v1.2.3