diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 21:57:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 21:57:50 +0300 |
commit | 8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d (patch) | |
tree | 9252c98b1fdf0f71aff58b8777090da94356c593 /src/gui/windows/buydialog.cpp | |
parent | 53f7874c0ae9e4e6337afdab6ec8383ae2f66f7c (diff) | |
download | manaplus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.tar.gz manaplus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.tar.bz2 manaplus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.tar.xz manaplus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.zip |
Remove ServerFeatures haveAdvancedBuySell because it depend only on server type.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index 1a2cf059b..9bf074ef5 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -50,6 +50,7 @@ #include "net/buysellhandler.h" #include "net/cashshophandler.h" #include "net/markethandler.h" +#include "net/net.h" #include "net/vendinghandler.h" #include "net/serverfeatures.h" #include "net/npchandler.h" @@ -221,7 +222,7 @@ BuyDialog::BuyDialog(const BeingId npcId, mMoney(0), mAmountItems(0), mMaxItems(0), - mAdvanced(serverFeatures ? serverFeatures->haveAdvancedBuySell() : false) + mAdvanced(Net::getNetworkType() == ServerType::EATHENA) { init(); } |