aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2012-11-14 09:37:19 +0000
committerD G Turner2012-11-14 09:37:19 +0000
commit459752f20b28882f4960f8b67b1683d629cbab9d (patch)
treeaf1f8e7358a208097fe7319bc96ac121f5875b12
parent05d97f33ecc9b2375bd5b7410458510c598da7a2 (diff)
downloadscummvm-rg350-459752f20b28882f4960f8b67b1683d629cbab9d.tar.gz
scummvm-rg350-459752f20b28882f4960f8b67b1683d629cbab9d.tar.bz2
scummvm-rg350-459752f20b28882f4960f8b67b1683d629cbab9d.zip
TONY: Fixed scripted exit to use engine method, rather than error().
This fixes bug #3586252 ("TONY: Game errors out when exiting via the menu").
-rw-r--r--engines/tony/custom.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tony/custom.cpp b/engines/tony/custom.cpp
index 425899f3ac..f5c580c8c5 100644
--- a/engines/tony/custom.cpp
+++ b/engines/tony/custom.cpp
@@ -1292,7 +1292,8 @@ void autoSave(CORO_PARAM, uint32, uint32, uint32, uint32) {
}
void abortGame(CORO_PARAM, uint32, uint32, uint32, uint32) {
- error("script called abortGame");
+ debug(1, "script called abortGame");
+ g_vm->quitGame();
}
void shakeScreen(CORO_PARAM, uint32 nScosse, uint32, uint32, uint32) {