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".
This commit is contained in:
D G Turner 2014-09-07 09:32:12 +01:00
parent f18178fd2c
commit 261d15d007

View File

@ -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();