diff options
author | Gregory Montoir | 2004-12-19 12:30:40 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-12-19 12:30:40 +0000 |
commit | da874257a50f82150ae475c3938e3422d6fa4984 (patch) | |
tree | 2188fe28e32f22e102a35594e7f75d097e649022 /scumm/saveload.cpp | |
parent | ec2099a9020e341d9cc23cb2a9cb8c14e8bc8703 (diff) | |
download | scummvm-rg350-da874257a50f82150ae475c3938e3422d6fa4984.tar.gz scummvm-rg350-da874257a50f82150ae475c3938e3422d6fa4984.tar.bz2 scummvm-rg350-da874257a50f82150ae475c3938e3422d6fa4984.zip |
to please PalmOS, I moved the _wiz member to ScummEngine_v70he, where it actually belongs, I don't quite like the upcasts I introduced, but I don't know how to deal without them
svn-id: r16132
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index d4ee6c2d62..b528054a55 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -28,12 +28,14 @@ #include "scumm/charset.h" #include "scumm/imuse_digi/dimuse.h" #include "scumm/imuse.h" +#include "scumm/intern.h" #include "scumm/object.h" #include "scumm/resource.h" #include "scumm/saveload.h" #include "scumm/scumm.h" #include "scumm/sound.h" #include "scumm/verbs.h" +#include "scumm/wiz_he.h" #include "sound/audiocd.h" #include "sound/mixer.h" @@ -726,8 +728,10 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { else s->saveLoadArrayOf(vm.slot, NUM_SCRIPT_SLOT, sizeof(vm.slot[0]), scriptSlotEntries); - if (_heversion >= 71) - s->saveLoadArrayOf(_wiz._polygons, ARRAYSIZE(_wiz._polygons), sizeof(_wiz._polygons[0]), polygonEntries); + if (_heversion >= 71) { + Wiz *wiz = &((ScummEngine_v70he *)this)->_wiz; + s->saveLoadArrayOf(wiz->_polygons, ARRAYSIZE(wiz->_polygons), sizeof(wiz->_polygons[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 |