aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/saveload.cpp6
-rw-r--r--scumm/saveload.h5
2 files changed, 8 insertions, 3 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index 0c392e6ade..9d1ed76c43 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -611,8 +611,12 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion) {
if (_objectRoomTable)
s->saveLoadArrayOf(_objectRoomTable, _numGlobalObjects, sizeof(_objectRoomTable[0]), sleByte);
- if (_shadowPaletteSize)
+ if (_shadowPaletteSize) {
s->saveLoadArrayOf(_shadowPalette, _shadowPaletteSize, 1, sleByte);
+ // _roomPalette didn't show up until V21 save games
+ if (savegameVersion >= VER_V21)
+ s->saveLoadArrayOf (_roomPalette, _shadowPaletteSize, 1, sleByte);
+ }
// PalManip data was not saved before V10 save games
if (savegameVersion < VER_V10)
diff --git a/scumm/saveload.h b/scumm/saveload.h
index 2bea7a0170..16e4deccaf 100644
--- a/scumm/saveload.h
+++ b/scumm/saveload.h
@@ -41,10 +41,11 @@ enum {
VER_V17,
VER_V18,
VER_V19,
- VER_V20
+ VER_V20,
+ VER_V21
};
-#define CURRENT_VER VER_V20
+#define CURRENT_VER VER_V21
// To work around a warning in GCC 3.2 (and 3.1 ?) regarding non-POD types,