diff options
author | Travis Howell | 2004-09-18 14:08:00 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-18 14:08:00 +0000 |
commit | 8e2af996becdb74ae0dbf588323bb4e4ecbf5aac (patch) | |
tree | e9364025d16d44a9557ddbddf0f464a52723e767 /scumm | |
parent | 9baf06c9faf1ba9707932ebb72578a5fbcafdb63 (diff) | |
download | scummvm-rg350-8e2af996becdb74ae0dbf588323bb4e4ecbf5aac.tar.gz scummvm-rg350-8e2af996becdb74ae0dbf588323bb4e4ecbf5aac.tar.bz2 scummvm-rg350-8e2af996becdb74ae0dbf588323bb4e4ecbf5aac.zip |
Ooops, broken saving.
svn-id: r15166
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/saveload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 7e120277b7..d7e4085a2a 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -717,7 +717,8 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { else s->saveLoadArrayOf(vm.slot, NUM_SCRIPT_SLOT, sizeof(vm.slot[0]), scriptSlotEntries); - s->saveLoadArrayOf(_WizPolygons, 200, sizeof(_WizPolygons[0]), polygonEntries); + if (_heversion >= 71) + s->saveLoadArrayOf(_WizPolygons, _WizNumPolygons, sizeof(_WizPolygons[0]), polygonEntries); s->saveLoadArrayOf(_objs, _numLocalObjects, sizeof(_objs[0]), objectEntries); if (s->isLoading() && savegameVersion < VER(13)) { // Since roughly v13 of the save games, the objs storage has changed a bit |