Browse Source

Bugfix: Auto Refill Belt not working properly

pull/7760/head
KPhoenix 2 years ago committed by Anders Jenbo
parent
commit
faa4486783
  1. 2
      Source/inv.cpp

2
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;
}

Loading…
Cancel
Save