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 Mar 7, 2024
1 parent bd89e2f commit 0f90d5b
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 @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 0f90d5b

Please sign in to comment.