summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-28 21:29:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-28 21:29:09 +0300
commit510d030cbf0cca87e81801b1f484c24e8d4b7940 (patch)
tree3c90786df7b3b98590bdfd3acd958c6901856a8b /src/gui
parentb3fb42d3225282bc146847488a74536953a2d726 (diff)
downloadmanaverse-510d030cbf0cca87e81801b1f484c24e8d4b7940.tar.gz
manaverse-510d030cbf0cca87e81801b1f484c24e8d4b7940.tar.bz2
manaverse-510d030cbf0cca87e81801b1f484c24e8d4b7940.tar.xz
manaverse-510d030cbf0cca87e81801b1f484c24e8d4b7940.zip
Build markethandler only if eathena enabled.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/buydialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index b19b88c18..e404a335b 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -447,6 +447,7 @@ void BuyDialog::action(const ActionEvent &event)
}
else if (mNpcId != Nick)
{
+#ifdef EATHENA_SUPPORT
if (mNpcId == Market)
{
marketHandler->buyItem(item->getId(),
@@ -456,7 +457,6 @@ void BuyDialog::action(const ActionEvent &event)
item->increaseQuantity(-mAmountItems);
item->update();
}
-#ifdef EATHENA_SUPPORT
else if (mNpcId == Cash)
{
cashShopHandler->buyItem(item->getPrice(),
@@ -464,8 +464,8 @@ void BuyDialog::action(const ActionEvent &event)
item->getColor(),
mAmountItems);
}
-#endif
else
+#endif
{
npcHandler->buyItem(mNpcId,
item->getId(),