From e395aeff05e73162b39652148a650c03b0f98f4b Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 28 Jan 2011 08:37:27 +0000 Subject: MOHAWK: Removed direct OSystem Quit calls from Myst Mohawk Interpreter. This avoids the same issue that caused leakage in other engines. svn-id: r55584 --- engines/mohawk/myst_scripts.cpp | 2 +- engines/mohawk/myst_stacks/credits.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/mohawk') 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(); -- cgit v1.2.3