summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 21:09:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 21:09:57 +0300
commitf16af47bd98f865193fcea1bbd9507904e2b20af (patch)
tree3a01a3a794b24114426bb5dd80b5d03136548770 /src/gui
parentd9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1 (diff)
downloadplus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.gz
plus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.bz2
plus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.xz
plus-f16af47bd98f865193fcea1bbd9507904e2b20af.zip
Remove ServerFeatures haveCart because it depend only on server type.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/shoplistbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 0fcce799a..004263119 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -38,6 +38,7 @@
#include "gui/windows/itemamountwindow.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#include "resources/inventory/inventory.h"
@@ -253,7 +254,7 @@ void ShopListBox::mouseReleased(MouseEvent& event)
return;
}
if (mType == ShopListBoxType::SellShop &&
- serverFeatures->haveCart() &&
+ Net::getNetworkType() == ServerType::EATHENA &&
src != DragDropSource::Cart)
{
return;