aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2007-02-18 10:57:11 +0000
committerNicola Mettifogo2007-02-18 10:57:11 +0000
commitcd75d9bfdb77bcad59d09b7a1788257205941e00 (patch)
tree47485b99e715efefcad1b982eb7ac04d3d62c0f0 /engines/parallaction
parent06c354c2361d0b0b007e444661e6c9cbcc81abba (diff)
downloadscummvm-rg350-cd75d9bfdb77bcad59d09b7a1788257205941e00.tar.gz
scummvm-rg350-cd75d9bfdb77bcad59d09b7a1788257205941e00.tar.bz2
scummvm-rg350-cd75d9bfdb77bcad59d09b7a1788257205941e00.zip
fixed broken savegames with duplicate items
svn-id: r25681
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/loadsave.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/parallaction/loadsave.cpp b/engines/parallaction/loadsave.cpp
index 614f883132..36b49e9580 100644
--- a/engines/parallaction/loadsave.cpp
+++ b/engines/parallaction/loadsave.cpp
@@ -187,18 +187,18 @@ void Parallaction::doSaveGame(uint16 slot, const char* name) {
f->writeString(s);
sprintf(s, "%d\n", _score);
f->writeString(s);
- sprintf(s, "%ul\n", _commandFlags);
+ sprintf(s, "%u\n", _commandFlags);
f->writeString(s);
sprintf(s, "%d\n", _numLocations);
f->writeString(s);
for (uint16 _si = 0; _si < _numLocations; _si++) {
- sprintf(s, "%s\n%ul\n", _locationNames[_si], _localFlags[_si]);
+ sprintf(s, "%s\n%u\n", _locationNames[_si], _localFlags[_si]);
f->writeString(s);
}
for (uint16 _si = 0; _si < 30; _si++) {
- sprintf(s, "%ul\n%d\n", _inventory[_si]._id, _inventory[_si]._index);
+ sprintf(s, "%u\n%d\n", _inventory[_si]._id, _inventory[_si]._index);
f->writeString(s);
}