diff options
Diffstat (limited to 'server/src/core/vm.lua')
-rw-r--r-- | server/src/core/vm.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index 79381876..812c3945 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -836,9 +836,13 @@ function mt:getLibValue(lib, parentType, v) value.maxReturns = 0 end if lib.args then + value.args = lib.args local values = {} for i, arg in ipairs(lib.args) do values[i] = self:getLibValue(arg, parentType) or self:createValue('any') + if arg.type == '...' then + value.hasDots = true + end end self:setFunctionArg(value, values) end |