summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index f86410a8c..0ecc6940f 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -521,6 +521,9 @@ void InventoryWindow::action(const ActionEvent &event)
Item *const item = mInventory->getItem(i);
if (item == nullptr)
continue;
+ if (item->isEquipped() == Equipped_true ||
+ PlayerInfo::isItemProtected(item->getId()))
+ continue;
inventoryHandler->moveItem2(InventoryType::Inventory,
item->getInvIndex(),
item->getQuantity(),