diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/vm.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index e649ecc7..8359c470 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -288,6 +288,7 @@ function mt:runFunction(func) self.chunk:cut 'locals' self.chunk.func = func + self.scope:cut 'locals' for name, loc in pairs(func.upvalues) do self.scope.locals[name] = loc end |