summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-28 22:56:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-28 22:57:51 +0300
commit2490ef610773ad1c7adf33a28b2fc982b2b8ee7e (patch)
treee84fa69940813b4e00966ed6dbf595222120b889 /src/gui
parent631e52266a80983046a61d68648becd9f3656ff7 (diff)
downloadmanaplus-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.tar.gz
manaplus-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.tar.bz2
manaplus-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.tar.xz
manaplus-2490ef610773ad1c7adf33a28b2fc982b2b8ee7e.zip
Build vendinghandler only if eathena enabled.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/buydialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index e404a335b..8c0f90466 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -477,6 +477,7 @@ void BuyDialog::action(const ActionEvent &event)
}
else if (mNpcId == Nick)
{
+#ifdef EATHENA_SUPPORT
if (serverFeatures->haveVending())
{
Being *const being = actorManager->findBeingByName(mNick);
@@ -491,6 +492,9 @@ void BuyDialog::action(const ActionEvent &event)
}
}
else if (tradeWindow)
+#else
+ if (tradeWindow)
+#endif
{
if (item)
{