summaryrefslogtreecommitdiff
path: root/script/lazytable.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/lazytable.lua')
-rw-r--r--script/lazytable.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/lazytable.lua b/script/lazytable.lua
index 344c56d0..9ac9c468 100644
--- a/script/lazytable.lua
+++ b/script/lazytable.lua
@@ -155,6 +155,11 @@ function mt:getObjectID(obj)
return id
end
+ if not next(obj) then
+ self.codeMap[id] = nil
+ return id
+ end
+
local fields = {}
local objs
for k, v in pairs(obj) do