diff options
Diffstat (limited to 'engines/kyra/saveload_mr.cpp')
-rw-r--r-- | engines/kyra/saveload_mr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/saveload_mr.cpp b/engines/kyra/saveload_mr.cpp index e4e63c4599..8b727862a5 100644 --- a/engines/kyra/saveload_mr.cpp +++ b/engines/kyra/saveload_mr.cpp @@ -60,7 +60,7 @@ void KyraEngine_MR::saveGame(const char *fileName, const char *saveName) { out->write(_scoreFlagTable, sizeof(_scoreFlagTable)); out->writeUint16BE(_mainCharacter.sceneId); - out->writeUint16BE(_mainCharacter.dlgIndex); + out->writeSint16BE(_mainCharacter.dlgIndex); out->writeByte(_mainCharacter.height); out->writeByte(_mainCharacter.facing); out->writeUint16BE(_mainCharacter.animFrame); @@ -169,7 +169,7 @@ void KyraEngine_MR::loadGame(const char *fileName) { in.read(_scoreFlagTable, sizeof(_scoreFlagTable)); _mainCharacter.sceneId = in.readUint16(); - _mainCharacter.dlgIndex = in.readUint16(); + _mainCharacter.dlgIndex = in.readSint16(); _mainCharacter.height = in.readByte(); _mainCharacter.facing = in.readByte(); _mainCharacter.animFrame = in.readUint16(); |