Select should use j not i

This commit is contained in:
Ukendio 2024-08-05 14:32:25 +02:00
parent ec9d58fe5d
commit fd40993ceb

View file

@ -734,7 +734,7 @@ do
without = Arm, without = Arm,
archetypes = function() archetypes = function()
return empty_list return empty_list
end end,
} }
setmetatable(EmptyQuery, EmptyQuery) setmetatable(EmptyQuery, EmptyQuery)
@ -1072,7 +1072,7 @@ do
local shouldRemove = false local shouldRemove = false
for j = 1, N do for j = 1, N do
local id = select(i, ...) local id = select(j, ...)
if tr[id] then if tr[id] then
shouldRemove = true shouldRemove = true
break break
@ -1147,7 +1147,7 @@ do
local shouldRemove = false local shouldRemove = false
for j = 1, N do for j = 1, N do
local id = select(i, ...) local id = select(j, ...)
if not tr[id] then if not tr[id] then
shouldRemove = true shouldRemove = true
break break