summaryrefslogtreecommitdiff
path: root/script/vm/vm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/vm.lua')
-rw-r--r--script/vm/vm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/vm.lua b/script/vm/vm.lua
index 36ad78c9..bc4f13e3 100644
--- a/script/vm/vm.lua
+++ b/script/vm/vm.lua
@@ -108,6 +108,7 @@ function mt:runFunction(func)
for _, arg in ipairs(func.args) do
if arg:getSource() ~= func:getObject() then
self:bindLocal(arg:getSource(), arg, 'local')
+ arg:getSource():set('arg', true)
end
end