summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/inventorywindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 64d9347af..e72945b99 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -366,9 +366,6 @@ void InventoryWindow::action(const gcn::ActionEvent &event)
}
else if (eventId == "drop")
{
- if (PlayerInfo::isItemProtected(item->getId()))
- return;
-
if (isStorageActive())
{
Net::getInventoryHandler()->moveItem2(Inventory::INVENTORY,
@@ -377,6 +374,9 @@ void InventoryWindow::action(const gcn::ActionEvent &event)
}
else
{
+ if (PlayerInfo::isItemProtected(item->getId()))
+ return;
+
if (inputManager.isActionActive(static_cast<int>(Input::KEY_MOD)))
{
PlayerInfo::dropItem(item, item->getQuantity(), true);