aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
authorMax Horn2010-07-06 23:24:36 +0000
committerMax Horn2010-07-06 23:24:36 +0000
commitafd285005825926ee4f26b7ca5b20d2450efe211 (patch)
tree99024b386bf0eedde6c858929f00e84d0786b6d3 /engines/sci/engine/savegame.cpp
parentfe409ea2692db8eb9d95564c03b166fb7baa316e (diff)
downloadscummvm-rg350-afd285005825926ee4f26b7ca5b20d2450efe211.tar.gz
scummvm-rg350-afd285005825926ee4f26b7ca5b20d2450efe211.tar.bz2
scummvm-rg350-afd285005825926ee4f26b7ca5b20d2450efe211.zip
SCI: Add version to obsolete string
This way, if we ever get rid of support for savegames with version <= 23, we can also get rid of this syncString() call. Without this change, it would have "infected" every new savegame version, forever. svn-id: r50730
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index dd8c3ca31d..5d82786b9a 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -286,7 +286,7 @@ void EngineState::saveLoadWithSerializer(Common::Serializer &s) {
s.skip(4, VER(9), VER(9)); // OBSOLETE: Used to be savegame_version
Common::String tmp;
- s.syncString(tmp); // OBSOLETE: Used to be game_version
+ s.syncString(tmp, VER(9), VER(23)); // OBSOLETE: Used to be game_version
s.skip(4, VER(9), VER(9)); // OBSOLETE: Used to be version
// OBSOLETE: Saved menus. Skip all of the saved data
@@ -746,7 +746,7 @@ void SegManager::reconstructClones() {
if (!baseObj)
error("Clone entry without a base class: %d", j);
} // end for
- } // end if
+ } // end if
} // end for
}