summaryrefslogtreecommitdiff
path: root/server/src/vm/local.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/local.lua')
-rw-r--r--server/src/vm/local.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/vm/local.lua b/server/src/vm/local.lua
index 11e3c8de..c6e67dbf 100644
--- a/server/src/vm/local.lua
+++ b/server/src/vm/local.lua
@@ -113,6 +113,12 @@ function mt:shadow(old)
group[#group+1] = self
self._shadow = group
+ if not self:getSource() then
+ log.error(table.dump(self))
+ log.error(table.dump(getmetatable(self)))
+ return
+ end
+
old:close(self:getSource().start - 1)
end