diff options
Diffstat (limited to 'engines/fullpipe/statesaver.cpp')
-rw-r--r-- | engines/fullpipe/statesaver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp index 5eb08fe213..d06bd9c593 100644 --- a/engines/fullpipe/statesaver.cpp +++ b/engines/fullpipe/statesaver.cpp @@ -88,13 +88,13 @@ bool GameLoader::writeSavegame(Scene *sc, const char *fname) { debugC(3, kDebugLoading, "Saving %d infos", _sc2array.size()); for (uint i = 0; i < _sc2array.size(); i++) { - archive->writeUint32LE(_sc2array[i]._picAniInfosCount); + archive->writeUint32LE(_sc2array[i]._picAniInfos.size()); - if (_sc2array[i]._picAniInfosCount) - debugC(3, kDebugLoading, "Count %d: %d", i, _sc2array[i]._picAniInfosCount); + if (_sc2array[i]._picAniInfos.size()) + debugC(3, kDebugLoading, "Count %d: %d", i, _sc2array[i]._picAniInfos.size()); - for (int j = 0; j < _sc2array[i]._picAniInfosCount; j++) { - _sc2array[i]._picAniInfos[j]->save(*archive); + for (uint j = 0; j < _sc2array[i]._picAniInfos.size(); j++) { + _sc2array[i]._picAniInfos[j].save(*archive); } } |