Fix (vanilla): Item disappearing from action bar after stacking identical item into it
This commit is contained in:
parent
86f41b8450
commit
1f5b954eb2
@ -539,6 +539,7 @@ void PlayerInventory::shiftSwap(InventorySlot const& slot) {
|
|||||||
} else if (auto bs = slot.ptr<BagSlot>()) {
|
} else if (auto bs = slot.ptr<BagSlot>()) {
|
||||||
if (itemAllowedInBag(m_swapSlot, bs->first)) {
|
if (itemAllowedInBag(m_swapSlot, bs->first)) {
|
||||||
m_swapSlot = m_bags[bs->first]->swapItems(bs->second, m_swapSlot);
|
m_swapSlot = m_bags[bs->first]->swapItems(bs->second, m_swapSlot);
|
||||||
|
if (m_swapSlot && !m_swapSlot->empty())
|
||||||
swapCustomBarLinks(SwapSlot(), slot);
|
swapCustomBarLinks(SwapSlot(), slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user