From a6ebc506a0758055f3229a3d873e3d9d8e650284 Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 31 Mar 2022 13:35:19 +0200 Subject: [PATCH] refresh stats when sending an item to stash by ctrl + click --- Source/inv.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index d703c4599..c7a9acf60 100644 --- a/Source/inv.cpp +++ b/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(location), false); + CalcPlrInv(player, true); + } else if (location <= INVITEM_INV_LAST) player.RemoveInvItem(location - INVITEM_INV_FIRST); else player.RemoveSpdBarItem(location - INVITEM_BELT_FIRST);