diff options
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r-- | server/src/vm/vm.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index f965b429..a8834806 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -100,7 +100,9 @@ function mt:runFunction(func) -- 暂时使用这种方式激活参数的source for _, arg in ipairs(func.args) do - self:bindLocal(arg.source, arg, 'local') + if arg.source ~= func:getObject() then + self:bindLocal(arg.source, arg, 'local') + end end local originFunction = self:getCurrentFunction() |