diff options
Diffstat (limited to 'engines/fullpipe/stateloader.cpp')
-rw-r--r-- | engines/fullpipe/stateloader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index 4df97636d1..c383442098 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -186,10 +186,8 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header) uint oldPos = in->pos(); // SEEK_END doesn't work with zipped savegames, so simulate it - while (!in->eos()) - in->readByte(); + in->seek(in->size() - 4, SEEK_SET); - in->seek(-4, SEEK_CUR); uint headerOffset = in->readUint32LE(); // Sanity check |