diff options
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r-- | server/src/vm/value.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua index 19aa1ee4..783bfc4e 100644 --- a/server/src/vm/value.lua +++ b/server/src/vm/value.lua @@ -101,6 +101,9 @@ function mt:getType() end function mt:rawSet(index, value, source) + if index == nil then + return + end if not self._child then self._child = {} end @@ -134,6 +137,9 @@ function mt:rawGet(index) end function mt:setChild(index, value, source) + if index == nil then + return + end self:setType('table', 0.5) self:rawSet(index, value, source) return value |