diff options
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r-- | server/src/vm/vm.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index 7168d0eb..47080454 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -19,8 +19,8 @@ function mt:getDefaultSource() } end -function mt:scopePush() - self.currentFunction:push() +function mt:scopePush(source) + self.currentFunction:push(source) end function mt:scopePop() @@ -99,7 +99,7 @@ function mt:runFunction(func) local originFunction = self:getCurrentFunction() self:setCurrentFunction(func) - func:push() + func:push(func.source) self:doActions(func.source) |