summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-20 17:20:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-20 17:20:38 +0300
commit0cc66ba20aa01f5319fcea108abdca5916c5c61b (patch)
tree54f572fe4dd0df82deed08674e522a5bce196ea7 /src/gui/widgets/itemcontainer.cpp
parentd1d247016b746fcb9b1bcf080c6975e2f60cca78 (diff)
downloadmanaverse-0cc66ba20aa01f5319fcea108abdca5916c5c61b.tar.gz
manaverse-0cc66ba20aa01f5319fcea108abdca5916c5c61b.tar.bz2
manaverse-0cc66ba20aa01f5319fcea108abdca5916c5c61b.tar.xz
manaverse-0cc66ba20aa01f5319fcea108abdca5916c5c61b.zip
Dont allow try to insert items into each other in legacy server.
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;