Browse Source

refresh stats when sending an item to stash by ctrl + click

pull/4286/head
qndel 4 years ago committed by Anders Jenbo
parent
commit
a6ebc506a0
  1. 7
      Source/inv.cpp

7
Source/inv.cpp

@ -1625,9 +1625,10 @@ void TransferItemToStash(Player &player, int location)
PlaySFX(ItemInvSnds[ItemCAnimTbl[item._iCurs]]);
if (location < INVITEM_INV_FIRST)
player.InvBody[location]._itype = ItemType::None;
else if (location <= INVITEM_INV_LAST)
if (location < INVITEM_INV_FIRST) {
RemoveEquipment(player, static_cast<inv_body_loc>(location), false);
CalcPlrInv(player, true);
} else if (location <= INVITEM_INV_LAST)
player.RemoveInvItem(location - INVITEM_INV_FIRST);
else
player.RemoveSpdBarItem(location - INVITEM_BELT_FIRST);

Loading…
Cancel
Save