This commit is contained in:
Bunny67
2018-07-13 16:56:32 +03:00
parent 623cfeaddd
commit 89e48a1432
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -5,6 +5,7 @@ function Private.argcheck(value, num, ...)
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got " .. type(num) .. ')')
for i = 1, arg.n do
-- if(type(value) == arg[i]) then return end
if(type(value) == select(i, unpack(arg))) then return end
end