aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorFlorian Kagerer2009-06-05 22:53:36 +0000
committerFlorian Kagerer2009-06-05 22:53:36 +0000
commit5f005bf93099def8c9fb1bb2eb61df600b0f0ed5 (patch)
tree1f0d58105bbc69061843810d1efe0202cea4c2c2 /engines/kyra
parent7e5269402541c5e8967cdfc17283fb89f27f69e2 (diff)
downloadscummvm-rg350-5f005bf93099def8c9fb1bb2eb61df600b0f0ed5.tar.gz
scummvm-rg350-5f005bf93099def8c9fb1bb2eb61df600b0f0ed5.tar.bz2
scummvm-rg350-5f005bf93099def8c9fb1bb2eb61df600b0f0ed5.zip
LOL: minor bug fix
svn-id: r41201
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/lol.h2
-rw-r--r--engines/kyra/saveload_lol.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/lol.h b/engines/kyra/lol.h
index 3b5c862141..be734d083c 100644
--- a/engines/kyra/lol.h
+++ b/engines/kyra/lol.h
@@ -69,7 +69,7 @@ struct LoLCharacter {
int16 nextAnimUpdateCountdown;
uint16 items[11];
uint8 skillLevels[3];
- uint8 skillModifiers[3];
+ int8 skillModifiers[3];
int32 experiencePts[3];
uint8 characterUpdateEvents[5];
uint8 characterUpdateDelay[5];
diff --git a/engines/kyra/saveload_lol.cpp b/engines/kyra/saveload_lol.cpp
index 4998795f73..248c46c2a3 100644
--- a/engines/kyra/saveload_lol.cpp
+++ b/engines/kyra/saveload_lol.cpp
@@ -85,7 +85,7 @@ Common::Error LoLEngine::loadGameState(int slot) {
for (int ii = 0; ii < 3; ii++)
c->skillLevels[ii] = in.readByte();
for (int ii = 0; ii < 3; ii++)
- c->skillModifiers[ii] = in.readByte();
+ c->skillModifiers[ii] = in.readSByte();
for (int ii = 0; ii < 3; ii++)
c->experiencePts[ii] = in.readUint32BE();
for (int ii = 0; ii < 5; ii++)
@@ -294,7 +294,7 @@ Common::Error LoLEngine::saveGameState(int slot, const char *saveName, const Gra
for (int ii = 0; ii < 3; ii++)
out->writeByte(c->skillLevels[ii]);
for (int ii = 0; ii < 3; ii++)
- out->writeByte(c->skillModifiers[ii]);
+ out->writeSByte(c->skillModifiers[ii]);
for (int ii = 0; ii < 3; ii++)
out->writeUint32BE(c->experiencePts[ii]);
for (int ii = 0; ii < 5; ii++)