From 8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 May 2017 21:57:50 +0300 Subject: Remove ServerFeatures haveAdvancedBuySell because it depend only on server type. --- src/gui/windows/npcselldialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/npcselldialog.cpp') diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp index 807b252cb..28dacf1dc 100644 --- a/src/gui/windows/npcselldialog.cpp +++ b/src/gui/windows/npcselldialog.cpp @@ -34,6 +34,7 @@ #include "gui/widgets/slider.h" #include "net/buysellhandler.h" +#include "net/net.h" #include "net/npchandler.h" #include "net/serverfeatures.h" @@ -46,7 +47,7 @@ NpcSellDialog::NpcSellDialog(const BeingId npcId) : SellDialog(IsSell_true, - (serverFeatures && serverFeatures->haveAdvancedBuySell()) ? + (Net::getNetworkType() == ServerType::EATHENA) ? Advanced_true : Advanced_false), mNpcId(npcId) { -- cgit v1.2.3-70-g09d2