aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/access/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/access/screen.cpp b/engines/access/screen.cpp
index af97e2e236..f62c2f5baf 100644
--- a/engines/access/screen.cpp
+++ b/engines/access/screen.cpp
@@ -139,7 +139,7 @@ void Screen::forceFadeOut() {
do {
repeatFlag = false;
- for (srcP = &_tempPalette[0], count = 0; count < PALETTE_COUNT; ++count, ++srcP) {
+ for (srcP = &_tempPalette[0], count = 0; count < PALETTE_SIZE; ++count, ++srcP) {
int v = *srcP;
if (v) {
repeatFlag = true;
@@ -149,7 +149,7 @@ void Screen::forceFadeOut() {
updatePalette();
g_system->delayMillis(10);
- } while (repeatFlag);
+ } while (repeatFlag && !_vm->shouldQuit());
}
void Screen::forceFadeIn() {