From 11af049539ec6b5aed7e956e7a23aeb79746c536 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Oct 2013 19:24:00 +0300 Subject: Fix inventory "store" button if item was protected. --- src/gui/windows/inventorywindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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(Input::KEY_MOD))) { PlayerInfo::dropItem(item, item->getQuantity(), true); -- cgit v1.2.3-70-g09d2