From e89fb908638196c9484a2038e3f3eb18db6ef4ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Jan 2016 17:05:30 +0300 Subject: Not allow add equipped items to craft inventory. --- src/gui/widgets/itemcontainer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index f274dcd11..65c5f24e5 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -869,6 +869,8 @@ void ItemContainer::mouseReleased(MouseEvent &event) if (inventory) { Item *const item = inventory->getItem(dragDrop.getTag()); + if (!item || item->isEquipped() == Equipped_true) + return; const int slot = getSlotByXY(event.getX(), event.getY()); if (item->getQuantity() > 1) { -- cgit v1.2.3-70-g09d2