diff --git a/Source/inv.cpp b/Source/inv.cpp index df76149cc..5e0f4d6c2 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1988,6 +1988,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; } @@ -2000,6 +2001,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; }