summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/vm/function.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua
index 834863d6..fab90a06 100644
--- a/server/src/vm/function.lua
+++ b/server/src/vm/function.lua
@@ -29,6 +29,7 @@ end
function mt:pop()
local closed = self.finishs[self._top]
local closedLocals = self.locals[self._top]
+ self.locals[self._top] = nil
for _, loc in pairs(closedLocals) do
loc:close(closed)
end