mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
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:
parent
f18178fd2c
commit
261d15d007
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user