From ee21d82948d55518da2f09443d0113f942f9895f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 7 Jun 2009 17:18:11 +0000 Subject: SCI: Fixed the broken SciEngine::pauseEngineIntern code by ensuring that SciEngine::_gamestate is updated whenever the EngineState gets changed (due to loading a savestate) svn-id: r41346 --- engines/sci/engine/vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 7b5fe3396a..b01e5054af 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -1947,7 +1947,7 @@ static void _init_stack_base_with_selector(EngineState *s, Selector selector) { EngineState *g_EngineState = 0; -static EngineState *_game_run(EngineState *s, int restoring) { +static EngineState *_game_run(EngineState *&s, int restoring) { EngineState *successor = NULL; int game_is_finished = 0; g_EngineState = s; @@ -2014,7 +2014,7 @@ int game_run(EngineState **_s) { return 1; } // and ENGAGE! - *_s = s = _game_run(s, 0); + _game_run(*_s, 0); sciprintf(" Game::play() finished.\n"); -- cgit v1.2.3