aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner2011-01-28 08:37:27 +0000
committerDavid Turner2011-01-28 08:37:27 +0000
commite395aeff05e73162b39652148a650c03b0f98f4b (patch)
treea13ce5e9a88b06bcf9afa58d1a06255978df0434
parent96174d6842fafe24afde9964e48967bc44b6badd (diff)
downloadscummvm-rg350-e395aeff05e73162b39652148a650c03b0f98f4b.tar.gz
scummvm-rg350-e395aeff05e73162b39652148a650c03b0f98f4b.tar.bz2
scummvm-rg350-e395aeff05e73162b39652148a650c03b0f98f4b.zip
MOHAWK: Removed direct OSystem Quit calls from Myst Mohawk Interpreter.
This avoids the same issue that caused leakage in other engines. svn-id: r55584
-rw-r--r--engines/mohawk/myst_scripts.cpp2
-rw-r--r--engines/mohawk/myst_stacks/credits.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp
index 42037690c0..6ead1a72a4 100644
--- a/engines/mohawk/myst_scripts.cpp
+++ b/engines/mohawk/myst_scripts.cpp
@@ -910,7 +910,7 @@ void MystScriptParser::o_soundWaitStop(uint16 op, uint16 var, uint16 argc, uint1
}
void MystScriptParser::o_quit(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
- _vm->_system->quit();
+ _vm->quitGame();
}
} // End of namespace Mohawk
diff --git a/engines/mohawk/myst_stacks/credits.cpp b/engines/mohawk/myst_stacks/credits.cpp
index df2a1c08cc..6c0b2c2951 100644
--- a/engines/mohawk/myst_stacks/credits.cpp
+++ b/engines/mohawk/myst_stacks/credits.cpp
@@ -68,7 +68,7 @@ void MystScriptParser_Credits::runPersistentScripts() {
// After the 6th image has shown, it's time to quit
if (_curImage == 7)
- _vm->_system->quit();
+ _vm->quitGame();
// Draw next image
_vm->drawCardBackground();