aboutsummaryrefslogtreecommitdiff
path: root/scumm/saveload.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-05-28 10:44:27 +0000
committerTravis Howell2005-05-28 10:44:27 +0000
commit9543d99fc403af22d2c6ec73d6ce1dfb29dbe0c6 (patch)
treedde474d2091acdf6307baa98b177cb17258a6ca7 /scumm/saveload.cpp
parent43ca852fdfba0fe10e248b6879525f4529c9e33a (diff)
downloadscummvm-rg350-9543d99fc403af22d2c6ec73d6ce1dfb29dbe0c6.tar.gz
scummvm-rg350-9543d99fc403af22d2c6ec73d6ce1dfb29dbe0c6.tar.bz2
scummvm-rg350-9543d99fc403af22d2c6ec73d6ce1dfb29dbe0c6.zip
Fix load/save game regression in HE90+ games.
svn-id: r18281
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r--scumm/saveload.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index ab050a7673..a146076988 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -1081,7 +1081,7 @@ void ScummEngine_v90he::saveOrLoad(Serializer *s, uint32 savegameVersion) {
MKLINE(ScummEngine_v90he, _curMaxSpriteId, sleInt32, VER(51)),
MKLINE(ScummEngine_v90he, _curSpriteId, sleInt32, VER(51)),
MKLINE(ScummEngine_v90he, _curSpriteGroupId, sleInt32, VER(51)),
- MKLINE(ScummEngine_v90he, _sprite->_numSpritesToProcess, sleInt32, VER(51)),
+ MKLINE(ScummEngine_v90he, _numSpritesToProcess, sleInt32, VER(51)),
MKLINE(ScummEngine_v90he, _heObject, sleInt32, VER(51)),
MKLINE(ScummEngine_v90he, _heObjectNum, sleInt32, VER(51)),
MKLINE(ScummEngine_v90he, _hePaletteNum, sleInt32, VER(51)),
@@ -1091,7 +1091,10 @@ void ScummEngine_v90he::saveOrLoad(Serializer *s, uint32 savegameVersion) {
_sprite->saveOrLoadSpriteData(&*s, savegameVersion);
s->saveLoadArrayOf(&_floodStateParams, 1, sizeof(_floodStateParams), floodStateEntries);
+
+ _numSpritesToProcess = _sprite->_numSpritesToProcess;
s->saveLoadEntries(this, HE90Entries);
+ _sprite->_numSpritesToProcess = _numSpritesToProcess;
if (_heversion >= 99) {
s->saveLoadArrayOf(_hePalettes, _numPalettes, sizeof(_hePalettes[0]), sleUint8);