aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-23 20:10:51 +0000
committerFilippos Karapetis2009-10-23 20:10:51 +0000
commitf0c429028705e5a7d9a434dd3357b18b416c0f96 (patch)
treeb364b75c70fd54b5d783bc1e4807535f3d4da1d2 /engines
parent6248d3a21d99b1e0ab7a7cc81a8c28616d4475b9 (diff)
downloadscummvm-rg350-f0c429028705e5a7d9a434dd3357b18b416c0f96.tar.gz
scummvm-rg350-f0c429028705e5a7d9a434dd3357b18b416c0f96.tar.bz2
scummvm-rg350-f0c429028705e5a7d9a434dd3357b18b416c0f96.zip
Reset the graphics input after reconstructing game scripts. This fixes savegame loading in KQ4
svn-id: r45350
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/savegame.cpp2
1 files changed, 1 insertions, 1 deletions
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();