fix handling pships as an arraylist
This commit is contained in:
parent
814149ceec
commit
63c97d1bee
@ -242,9 +242,7 @@ function updategame()
|
||||
if leveldone and not eships.next and not ebullets.next and not events.next then
|
||||
state = win
|
||||
end
|
||||
if #pships == 0 then
|
||||
state = lose
|
||||
end
|
||||
if (not pships.next) state = lose end
|
||||
end
|
||||
|
||||
function _draw()
|
||||
|
Loading…
Reference in New Issue
Block a user