redundant check

This commit is contained in:
kurokuukyo 2026-04-21 07:01:58 -04:00
parent 65b6629c8f
commit 3077e6baa4

View file

@ -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))