From f0c429028705e5a7d9a434dd3357b18b416c0f96 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 23 Oct 2009 20:10:51 +0000 Subject: Reset the graphics input after reconstructing game scripts. This fixes savegame loading in KQ4 svn-id: r45350 --- engines/sci/engine/savegame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 297c1462a9..fa8cfaf2f7 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -758,7 +758,6 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { retval->_sound._songlib.freeSounds(); retval->_sound._songlib = temp; - _reset_graphics_input(retval); reconstruct_stack(retval); retval->_segMan->reconstructScripts(retval); retval->_segMan->reconstructClones(); @@ -767,6 +766,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { retval->gc_countdown = GC_INTERVAL - 1; retval->sys_strings_segment = retval->_segMan->findSegmentByType(SEG_TYPE_SYS_STRINGS); retval->sys_strings = (SystemStrings *)GET_SEGMENT(*retval->_segMan, retval->sys_strings_segment, SEG_TYPE_SYS_STRINGS); + _reset_graphics_input(retval); // Time state: retval->last_wait_time = g_system->getMillis(); -- cgit v1.2.3