From faa4486783091fa53e8d482b67a49d7dc2e8bd7f Mon Sep 17 00:00:00 2001 From: KPhoenix Date: Thu, 7 Mar 2024 04:43:22 -0500 Subject: [PATCH] Bugfix: Auto Refill Belt not working properly --- Source/inv.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }