diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/vm.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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 |