vararg change for tbc compatibility

This commit is contained in:
Manuel Simon Hirsig
2017-06-02 19:01:16 +02:00
parent 109a0f1578
commit 116f65f109
2 changed files with 13 additions and 18 deletions
+3 -3
View File
@@ -875,9 +875,9 @@ local methods = {
end
end,
SetSort = function(self, ...)
temp(arg)
for k = 1, arg.n do
SetSort = vararg-function(arg)
local self = tremove(arg, 1)
for k = 1, getn(arg) do
for i, sort in self.sorts do
if sort.index == abs(arg[k]) then
tremove(self.sorts, i)