aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorD G Turner2011-06-08 03:38:52 +0100
committerD G Turner2011-06-08 03:38:52 +0100
commite3a409b9a42af315e8e9fb23c755bdc8357ddcf9 (patch)
treee4ff51fa4e4d675182690156f71305b376eb6e3f /engines/agi
parentdbaf9e49c7358a2cdcee396bfe3381fd5571a30c (diff)
downloadscummvm-rg350-e3a409b9a42af315e8e9fb23c755bdc8357ddcf9.tar.gz
scummvm-rg350-e3a409b9a42af315e8e9fb23c755bdc8357ddcf9.tar.bz2
scummvm-rg350-e3a409b9a42af315e8e9fb23c755bdc8357ddcf9.zip
AGI: Fix Engine Exit While Predictive Dialog Is Open.
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/predictive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp
index e45a5a8209..edfe83b1cb 100644
--- a/engines/agi/predictive.cpp
+++ b/engines/agi/predictive.cpp
@@ -190,7 +190,7 @@ bool AgiEngine::predictiveDialog() {
bool needRefresh = true;
- for (;;) {
+ while (!shouldQuit()) {
if (needRefresh) {
for (int i = 0; buttons[i]; i++) {
int color1 = colors[i * 2];