aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-12-10 20:19:53 +0000
committerFilippos Karapetis2007-12-10 20:19:53 +0000
commit32a3b601670e14ad48b5fa0ce548f412421f382c (patch)
tree75d25cc7b6a94bde5e2aa8c6c39ee6b61a9e2fac
parentcd740a547471f080cd60f44c85ce4c7112e42d1b (diff)
downloadscummvm-rg350-32a3b601670e14ad48b5fa0ce548f412421f382c.tar.gz
scummvm-rg350-32a3b601670e14ad48b5fa0ce548f412421f382c.tar.bz2
scummvm-rg350-32a3b601670e14ad48b5fa0ce548f412421f382c.zip
Save game header is 32 bits, not 16
svn-id: r29819
-rw-r--r--engines/agi/preagi_winnie.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp
index e1f88db755..0a7fecb187 100644
--- a/engines/agi/preagi_winnie.cpp
+++ b/engines/agi/preagi_winnie.cpp
@@ -1255,10 +1255,10 @@ void Winnie::loadGame() {
// Note that the original saves variables as 16-bit integers, but only 8 bits are used.
// Since we read the save file data as little-endian, we skip the first byte of each
// variable
+
+ infile->seek(0); // Jump back to the beginning of the file
- // First 16 bits are an unused field, and they have already been read from the
- // header check above
-
+ infile->readUint16LE(); // skip unused field
infile->readByte(); // first 8 bits of fSound
_game.fSound = infile->readByte();
infile->readByte(); // first 8 bits of nMoves