fix handling pships as an arraylist

This commit is contained in:
Kistaro Windrider 2023-09-30 02:15:05 -07:00
parent 814149ceec
commit 63c97d1bee
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

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