diff --git a/Source/inv.cpp b/Source/inv.cpp index 7d6d61eefc3..cc5eb5fae93 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1989,6 +1989,7 @@ bool UseInvItem(int cii) if (player.InvList[i]._iMiscId == item->_iMiscId && player.InvList[i]._iSpell == item->_iSpell) { c = i; item = &player.InvList[c]; + cii = c + INVITEM_INV_FIRST; speedlist = false; break; } @@ -2001,6 +2002,7 @@ bool UseInvItem(int cii) if (!candidate.isEmpty() && candidate._iMiscId == item->_iMiscId && candidate._iSpell == item->_iSpell) { c = i; + cii = c + INVITEM_BELT_FIRST; item = &candidate; break; }