diff options
author | Eugene Sandulenko | 2016-09-21 05:53:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-21 08:11:55 +0200 |
commit | a5d9834780e236016fe3953232e950b97dbd238c (patch) | |
tree | 5b6c997a643dda3ef37db4438d90d6ca3fb73a27 /engines/fullpipe | |
parent | 76fcf4f025801a426246d515efe65953158e01f1 (diff) | |
download | scummvm-rg350-a5d9834780e236016fe3953232e950b97dbd238c.tar.gz scummvm-rg350-a5d9834780e236016fe3953232e950b97dbd238c.tar.bz2 scummvm-rg350-a5d9834780e236016fe3953232e950b97dbd238c.zip |
FULLPIPE: Optimize savegame loading
Diffstat (limited to 'engines/fullpipe')
-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 |