Fix memory corruption on victory screen

This commit is contained in:
elasota
2020-04-05 18:36:27 -04:00
parent e114d5c5dd
commit 5c1aacc268

View File

@@ -162,6 +162,8 @@ void DoGameOverStarAnimation (void)
PlayPrioritySound(kMysticSound, kMysticPriority);
which = angelDest.left / 32;
which = which % 5;
if (which < 0)
which += 5;
ZeroRectCorner(&pages[which].dest);
QOffsetRect(&pages[which].dest, angelDest.left, angelDest.bottom);
if (count < (which + 1))