summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 22:17:05 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 22:17:05 +0300
commit3f5599082b5543a7f1c6a7bf3d631ac3805acc23 (patch)
tree80871bdbeafedac9c3ccf6949cf8e80c2cb2447a /src/gui/windows
parent3f9b89422c25cce1c2177bb027fe4d96d3d9294f (diff)
downloadplus-3f5599082b5543a7f1c6a7bf3d631ac3805acc23.tar.gz
plus-3f5599082b5543a7f1c6a7bf3d631ac3805acc23.tar.bz2
plus-3f5599082b5543a7f1c6a7bf3d631ac3805acc23.tar.xz
plus-3f5599082b5543a7f1c6a7bf3d631ac3805acc23.zip
Remove ServerFeatures haveSecureTrades because it depend only on server type.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/tradewindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 6e6fe5d95..34ee3699a 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -53,6 +53,7 @@
#include "resources/item/item.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#include "net/tradehandler.h"
@@ -535,7 +536,7 @@ bool TradeWindow::checkItem(const Item *const item) const
}
return false;
}
- if (serverFeatures->haveSecureTrades() &&
+ if (Net::getNetworkType() == ServerType::EATHENA &&
item->isEquipped() == Equipped_true)
{
if (localChatTab)