summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 723f043d7..f7dec4452 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -418,10 +418,10 @@ void ItemContainer::mousePressed(MouseEvent &event)
case InventoryType::NPC:
src = DRAGDROP_SOURCE_NPC;
break;
+#ifdef EATHENA_SUPPORT
case InventoryType::CART:
src = DRAGDROP_SOURCE_CART;
break;
-#ifdef EATHENA_SUPPORT
case InventoryType::MAIL:
src = DRAGDROP_SOURCE_MAIL;
break;
@@ -529,10 +529,10 @@ void ItemContainer::mouseReleased(MouseEvent &event)
case InventoryType::MAIL:
dst = DRAGDROP_SOURCE_MAIL;
break;
-#endif
case InventoryType::CART:
dst = DRAGDROP_SOURCE_CART;
break;
+#endif
default:
#ifdef EATHENA_SUPPORT
case InventoryType::VENDING:
@@ -596,7 +596,10 @@ void ItemContainer::mouseReleased(MouseEvent &event)
}
else if (src == DRAGDROP_SOURCE_INVENTORY
&& (dst == DRAGDROP_SOURCE_NPC
- || dst == DRAGDROP_SOURCE_MAIL))
+#ifdef EATHENA_SUPPORT
+ || dst == DRAGDROP_SOURCE_MAIL
+#endif
+ ))
{
inventory = PlayerInfo::getInventory();
const Item *const item = inventory->getItem(dragDrop.getTag());
@@ -614,7 +617,11 @@ void ItemContainer::mouseReleased(MouseEvent &event)
}
return;
}
+#ifdef EATHENA_SUPPORT
else if (src == DRAGDROP_SOURCE_NPC || src == DRAGDROP_SOURCE_MAIL)
+#else
+ else if (src == DRAGDROP_SOURCE_NPC)
+#endif
{
inventory = PlayerInfo::getInventory();
const Item *const item = inventory->getItem(dragDrop.getTag());