diff options
author | Johannes Schickel | 2008-03-03 22:51:16 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-03-03 22:51:16 +0000 |
commit | 6c41dbdef277e05d2a2014a8978f5d87d24ac704 (patch) | |
tree | 2a1589eb8f1e0cbab85704750d6465f8f4eefd64 /engines/kyra | |
parent | b651a74b45f922c5d7bd8182cbe465298c8cf270 (diff) | |
download | scummvm-rg350-6c41dbdef277e05d2a2014a8978f5d87d24ac704.tar.gz scummvm-rg350-6c41dbdef277e05d2a2014a8978f5d87d24ac704.tar.bz2 scummvm-rg350-6c41dbdef277e05d2a2014a8978f5d87d24ac704.zip |
Fixed crash when clicking on empty inventory slot.
svn-id: r31039
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/gui_v2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/gui_v2.cpp b/engines/kyra/gui_v2.cpp index bbb51adda5..cfaa9f4d2c 100644 --- a/engines/kyra/gui_v2.cpp +++ b/engines/kyra/gui_v2.cpp @@ -573,7 +573,7 @@ int KyraEngine_v2::buttonInventory(Button *button) { uint16 item = _mainCharacter.inventory[inventorySlot]; if (_itemInHand == -1) { - if (item == -1) + if (item == 0xFFFF) return 0; _screen->hideMouse(); clearInventorySlot(inventorySlot, 0); |