Fix (vanilla): Item disappearing from action bar after stacking identical item into it

This commit is contained in:
Kae 2023-11-02 16:31:35 +11:00
parent 86f41b8450
commit 1f5b954eb2

View File

@ -539,6 +539,7 @@ void PlayerInventory::shiftSwap(InventorySlot const& slot) {
} else if (auto bs = slot.ptr<BagSlot>()) {
if (itemAllowedInBag(m_swapSlot, bs->first)) {
m_swapSlot = m_bags[bs->first]->swapItems(bs->second, m_swapSlot);
if (m_swapSlot && !m_swapSlot->empty())
swapCustomBarLinks(SwapSlot(), slot);
}
}