diff options
author | D G Turner | 2014-09-07 09:32:12 +0100 |
---|---|---|
committer | D G Turner | 2014-09-07 09:32:12 +0100 |
commit | 261d15d007d83e3087699068e3f46a8f250dd757 (patch) | |
tree | 175a9d904782b4e6db07b0abb69b90a4cb556716 | |
parent | f18178fd2c0b959aa82d79feefb1c746baa9c35d (diff) | |
download | scummvm-rg350-261d15d007d83e3087699068e3f46a8f250dd757.tar.gz scummvm-rg350-261d15d007d83e3087699068e3f46a8f250dd757.tar.bz2 scummvm-rg350-261d15d007d83e3087699068e3f46a8f250dd757.zip |
KYRA (LOL): Fix bug #6727 due to incorrect assertion range.
This was the bug with "Engine assertion at various dialogues if no items
in inventory".
-rw-r--r-- | engines/kyra/items_lol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/items_lol.cpp b/engines/kyra/items_lol.cpp index f2a9637dfe..e1f864ddd2 100644 --- a/engines/kyra/items_lol.cpp +++ b/engines/kyra/items_lol.cpp @@ -265,7 +265,7 @@ bool LoLEngine::addItemToInventory(Item itemIndex) { gui_drawInventory(); } - assert(pos > 0 && pos < 48); + assert(pos >= 0 && pos < 48); _inventory[pos] = itemIndex; gui_drawInventory(); |