aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/items_lol.cpp
diff options
context:
space:
mode:
authorD G Turner2014-09-07 09:32:12 +0100
committerD G Turner2014-09-07 09:32:12 +0100
commit261d15d007d83e3087699068e3f46a8f250dd757 (patch)
tree175a9d904782b4e6db07b0abb69b90a4cb556716 /engines/kyra/items_lol.cpp
parentf18178fd2c0b959aa82d79feefb1c746baa9c35d (diff)
downloadscummvm-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".
Diffstat (limited to 'engines/kyra/items_lol.cpp')
-rw-r--r--engines/kyra/items_lol.cpp2
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();