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 a62e812f..6ddaac03 100644
--- a/server/src/vm/local.lua
+++ b/server/src/vm/local.lua
@@ -109,6 +109,12 @@ end
function mt:shadow(old)
if not old then
+ for i = #self._shadow, 1, -1 do
+ local loc = self._shadow[i]
+ if not loc:getSource() then
+ table.remove(self._shadow, i)
+ end
+ end
return self._shadow
end
local group = old._shadow