mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Select should use j not i
This commit is contained in:
parent
ec9d58fe5d
commit
fd40993ceb
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue