From 0f90d5babab49b804ec54137d9e336835dd73a60 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 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; }