mirror of
https://github.com/Ukendio/jecs.git
synced 2026-05-13 14:24:14 +00:00
redundant check
This commit is contained in:
parent
65b6629c8f
commit
3077e6baa4
1 changed files with 1 additions and 4 deletions
|
|
@ -3365,10 +3365,7 @@ TEST("world:targets()", function()
|
||||||
end
|
end
|
||||||
|
|
||||||
for j = 1, #all_targets do
|
for j = 1, #all_targets do
|
||||||
local t: Entity
|
local t = all_targets[j]
|
||||||
while t == nil do
|
|
||||||
t = all_targets[j]
|
|
||||||
end
|
|
||||||
|
|
||||||
if math.random() < 0.5 then
|
if math.random() < 0.5 then
|
||||||
world:remove(e, jecs.pair(ROOT, t))
|
world:remove(e, jecs.pair(ROOT, t))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue