summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r--src/gui/widgets/itemcontainer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index ea01bcd5d..4ad994834 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -47,6 +47,7 @@
#include "net/inventoryhandler.h"
#include "net/npchandler.h"
+#include "net/serverfeatures.h"
#include "net/tradehandler.h"
#include "utils/delete2.h"
@@ -784,6 +785,8 @@ void ItemContainer::mouseReleased(MouseEvent &event)
if (src == DragDropSource::Inventory
&& dst == DragDropSource::Inventory)
{
+ if (!serverFeatures->haveCards())
+ return;
const int index = getSlotIndex(event.getX(), event.getY());
if (index == Inventory::NO_SLOT_INDEX)
return;