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
This commit is contained in:
parent
21d948ec05
commit
ee21d82948
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue