diff options
Diffstat (limited to 'queen/logic.cpp')
-rw-r--r-- | queen/logic.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index 0b533d8c45..5e8eeb0be7 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -1298,11 +1298,11 @@ void Logic::saveState(byte *&ptr) { void Logic::loadState(uint32 ver, byte *&ptr) { uint16 i; for (i = 0; i < 4; i++) { - _inventoryItem[i] = (int16)READ_BE_UINT16(ptr); ptr += 2; + _inventoryItem[i] = (int16)READ_BE_INT16(ptr); ptr += 2; } - _joe.x = (int16)READ_BE_UINT16(ptr); ptr += 2; - _joe.y = (int16)READ_BE_UINT16(ptr); ptr += 2; + _joe.x = (int16)READ_BE_INT16(ptr); ptr += 2; + _joe.y = (int16)READ_BE_INT16(ptr); ptr += 2; _currentRoom = READ_BE_UINT16(ptr); ptr += 2; @@ -1313,7 +1313,7 @@ void Logic::loadState(uint32 ver, byte *&ptr) { _itemData[i].readFromBE(ptr); for (i = 0; i < GAME_STATE_COUNT; i++) { - _gameState[i] = (int16)READ_BE_UINT16(ptr); ptr += 2; + _gameState[i] = (int16)READ_BE_INT16(ptr); ptr += 2; } for (i = 0; i < TALK_SELECTED_COUNT; i++) |