aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-01-04 13:14:11 +0000
committerTorbjörn Andersson2009-01-04 13:14:11 +0000
commit4273d0db92f37dcaefea280022e9d6b2effafeb9 (patch)
tree3700ea5dbb723c84f072c88b3ad477483c495096 /engines/agos/script.cpp
parentb354df11af44155d1f55df0a806dcb598946dad3 (diff)
downloadscummvm-rg350-4273d0db92f37dcaefea280022e9d6b2effafeb9.tar.gz
scummvm-rg350-4273d0db92f37dcaefea280022e9d6b2effafeb9.tar.bz2
scummvm-rg350-4273d0db92f37dcaefea280022e9d6b2effafeb9.zip
Fixed a crash when quitting Swampy Adventures. (Regression from the RTL changes.)
svn-id: r35722
Diffstat (limited to 'engines/agos/script.cpp')
-rw-r--r--engines/agos/script.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agos/script.cpp b/engines/agos/script.cpp
index 4bcb573e09..3771e2fba5 100644
--- a/engines/agos/script.cpp
+++ b/engines/agos/script.cpp
@@ -411,6 +411,8 @@ void AGOSEngine::o_msg() {
void AGOSEngine::o_end() {
// 68: exit interpreter
quitGame();
+ // Make sure the quit event is processed immediately.
+ delay(0);
}
void AGOSEngine::o_done() {