aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-30 18:41:55 +0000
committerJohannes Schickel2008-03-30 18:41:55 +0000
commitbd85909ff998150a6a238ad04a554f5024faa6ef (patch)
treebc423df823fd23c62ec4bd4db95e6d1e23eb04ec /engines
parent54d2e7128e709fd7c6cffc3720d309ae0d2a3edf (diff)
downloadscummvm-rg350-bd85909ff998150a6a238ad04a554f5024faa6ef.tar.gz
scummvm-rg350-bd85909ff998150a6a238ad04a554f5024faa6ef.tar.bz2
scummvm-rg350-bd85909ff998150a6a238ad04a554f5024faa6ef.zip
Don't enter run loop when quit flag is set.
svn-id: r31337
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_v2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index 0924a649fb..04c98ca953 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -269,7 +269,8 @@ int KyraEngine_v2::go() {
if (_menuChoice & 1) {
startup();
- runLoop();
+ if (!quit())
+ runLoop();
cleanup();
if (_showCredits)