[Scummvm-cvs-logs] SF.net SVN: scummvm:[45350] scummvm/trunk/engines/sci/engine/savegame.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Oct 23 22:10:52 CEST 2009


Revision: 45350
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45350&view=rev
Author:   thebluegr
Date:     2009-10-23 20:10:51 +0000 (Fri, 23 Oct 2009)

Log Message:
-----------
Reset the graphics input after reconstructing game scripts. This fixes savegame loading in KQ4

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/savegame.cpp

Modified: scummvm/trunk/engines/sci/engine/savegame.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/savegame.cpp	2009-10-23 19:20:59 UTC (rev 45349)
+++ scummvm/trunk/engines/sci/engine/savegame.cpp	2009-10-23 20:10:51 UTC (rev 45350)
@@ -758,7 +758,6 @@
 	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 @@
 	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();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list