Skip to content

Commit

Permalink
Bugfix: Auto Refill Belt not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 authored and AJenbo committed Feb 11, 2025
1 parent a3cae03 commit faa4486
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/inv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit faa4486

Please sign in to comment.