This commit is contained in:
Bunny67
2018-07-11 23:24:37 +03:00
parent 91240dbf00
commit f65e8aa789
5 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ local Private = ns.oUF.Private
function Private.argcheck(value, num, ...)
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got " .. type(num) .. ')')
for i = 1, select('#', arg) do
for i = 1, arg.n do
if(type(value) == select(i, unpack(arg))) then return end
end