diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/vm.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index 65968396..7ae4e4e1 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -286,7 +286,9 @@ function mt:runFunction(func) local var = self:createArg('self', func.colon, self:getValue(func.object)) var.hide = true var.link = func.object - self:setValue(var, func.argValues[1] or self:createValue('nil')) + if func.argValues[1] then + self:setValue(var, func.argValues[1]) + end index = 1 func.args[index] = var end |