diff options
author | Paul Gilbert | 2018-04-20 19:59:09 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-20 19:59:09 -0400 |
commit | a5395edd325722accb752c644f76f77f96cd7065 (patch) | |
tree | 9c03d65c710ab9939ffdb53dccb312d81461d3b8 | |
parent | 63ebadaf27d55719e5975bbc20152cdbfcad6e6b (diff) | |
download | scummvm-rg350-a5395edd325722accb752c644f76f77f96cd7065.tar.gz scummvm-rg350-a5395edd325722accb752c644f76f77f96cd7065.tar.bz2 scummvm-rg350-a5395edd325722accb752c644f76f77f96cd7065.zip |
XEEN: Fix scripts scanning party inventories for an item
-rw-r--r-- | engines/xeen/scripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 8c1f4a0255..a354bc1a29 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1599,8 +1599,8 @@ bool Scripts::ifProc(int action, uint32 val, int mode, int charIndex) { uint itemOffset = _vm->getGameID() == GType_Swords ? 6 : 0; v = 0xFFFFFFFF; if (val < (82 + itemOffset)) { - for (int idx = 0; idx < 9; ++idx) { - if (val == (35 + itemOffset)) { + for (int idx = 0; idx < INV_ITEMS_TOTAL; ++idx) { + if (val < (35 + itemOffset)) { if (ps->_weapons[idx]._id == val) { v = val; break; |