mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Fix memory corruption
This commit is contained in:
@@ -162,6 +162,8 @@ void DoGameOverStarAnimation (void)
|
|||||||
PlayPrioritySound(kMysticSound, kMysticPriority);
|
PlayPrioritySound(kMysticSound, kMysticPriority);
|
||||||
which = angelDest.left / 32;
|
which = angelDest.left / 32;
|
||||||
which = which % 5;
|
which = which % 5;
|
||||||
|
if (which < 0)
|
||||||
|
which += 5;
|
||||||
ZeroRectCorner(&pages[which].dest);
|
ZeroRectCorner(&pages[which].dest);
|
||||||
QOffsetRect(&pages[which].dest, angelDest.left, angelDest.bottom);
|
QOffsetRect(&pages[which].dest, angelDest.left, angelDest.bottom);
|
||||||
if (count < (which + 1))
|
if (count < (which + 1))
|
||||||
|
Reference in New Issue
Block a user