summaryrefslogtreecommitdiff
path: root/server/src/vm/vm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r--server/src/vm/vm.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index 9e19199e..364dcf18 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -103,6 +103,11 @@ function mt:runFunction(func)
return
end
+ -- 暂时使用这种方式激活参数的source
+ for _, arg in ipairs(func.args) do
+ self:bindLocal(arg.source, arg, 'local')
+ end
+
local originFunction = self:getCurrentFunction()
self:setCurrentFunction(func)
func:push()