Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayerInventory.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-05-01 05:04:38 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-05-01 05:04:38 +1000
commit789597dde49bf8ce6e374ea9afd00dd7295e21ce (patch)
tree1928c2b2517dacae21c42ce329a5f98ffeac9a25 /source/game/StarPlayerInventory.cpp
parent9e3048ea16316e434fb899b97b2b48e314fae457 (diff)
fix inventory hotbar links breaking when moving an item
Diffstat (limited to 'source/game/StarPlayerInventory.cpp')
-rw-r--r--source/game/StarPlayerInventory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/game/StarPlayerInventory.cpp b/source/game/StarPlayerInventory.cpp
index bacd58d..0fbcd66 100644
--- a/source/game/StarPlayerInventory.cpp
+++ b/source/game/StarPlayerInventory.cpp
@@ -547,8 +547,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);
+ swapCustomBarLinks(SwapSlot(), slot);
}
}