From 96f62b9e3f52302cbaec6c11eeb10e3e3b3b9fae Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 18 Dec 2021 15:47:26 +0100 Subject: added check for equiped items, and protected items. ignored by store all fixes #26 --- src/gui/windows/inventorywindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(), -- cgit v1.2.3-70-g09d2