Fixed loading of saved games

svn-id: r47729
This commit is contained in:
Filippos Karapetis 2010-01-30 23:40:29 +00:00
parent 3d1a43bc54
commit 4a4b69dbeb
2 changed files with 2 additions and 2 deletions

View File

@ -951,8 +951,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
#ifdef ENABLE_SCI32
// Copy the Gui32 pointer over to the new EngineState, if it exists
if (s->_gui32)
retval->_gui32 = s->_gui32;
retval->_gui32 = s->_gui32;
#endif
// Copy some old data

View File

@ -1043,6 +1043,7 @@ void run_vm(EngineState *s, int restoring) {
// place (i.e. menus have been constructed etc). Therefore, inject a kRestoreGame call
// here, instead of the requested function.
int saveSlot = g_loadFromLauncher;
g_loadFromLauncher = -1; // invalidate slot, so that we don't load again
if (saveSlot < 0)
error("Requested to load invalid save slot"); // should never happen, really