From bbdd2711dec66a90d712673acf1ff453581d1c51 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, 29 Jan 2019 17:25:37 +0800 Subject: =?UTF-8?q?=E5=86=99=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/vm.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index cda8422e..a0c8df26 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -943,13 +943,14 @@ function mt:getSimple(simple, mode) local index = self:getIndex(child) if mode == 'value' or i < #simple then field = self:getField(value, index, obj) or self:createField(value, index, obj) + field.parentValue = value value = self:getValue(field) self:addInfo(field, 'get', obj) else field = self:createField(value, index, obj) + field.parentValue = value value = self:getValue(field) end - field.parentValue = value field.parent = lastField if obj[1].type == 'string' then parentName = ('%s[%q]'):format(parentName, index) @@ -961,13 +962,14 @@ function mt:getSimple(simple, mode) elseif tp == 'name' then if mode == 'value' or i < #simple then field = self:getField(value, obj[1], obj) or self:createField(value, obj[1], obj) + field.parentValue = value value = self:getValue(field) self:addInfo(field, 'get', obj) else field = self:createField(value, obj[1], obj) + field.parentValue = value value = self:getValue(field) end - field.parentValue = value field.parent = lastField lastField = field obj.object = object -- cgit v1.2.3