aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {