Fix memory corruption

This commit is contained in:
elasota
2020-04-01 23:29:48 -04:00
parent 6326a0b2d9
commit 66a709ad2a

View File

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