summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-27 00:45:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-27 01:51:18 +0300
commite13a1fc1d45c009badc10b4ec4a72bbbcf6fe592 (patch)
tree1d6fe1bcab60fb7a7ec2f6911d069394db3b6126 /src/gui
parentccd272519ec38b15fa5ec24fe4c6daa6eb45e3da (diff)
downloadmanaplus-e13a1fc1d45c009badc10b4ec4a72bbbcf6fe592.tar.gz
manaplus-e13a1fc1d45c009badc10b4ec4a72bbbcf6fe592.tar.bz2
manaplus-e13a1fc1d45c009badc10b4ec4a72bbbcf6fe592.tar.xz
manaplus-e13a1fc1d45c009badc10b4ec4a72bbbcf6fe592.zip
Build cashshophandler only if eathena enabled.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/buydialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index a71759840..b19b88c18 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -456,6 +456,7 @@ void BuyDialog::action(const ActionEvent &event)
item->increaseQuantity(-mAmountItems);
item->update();
}
+#ifdef EATHENA_SUPPORT
else if (mNpcId == Cash)
{
cashShopHandler->buyItem(item->getPrice(),
@@ -463,6 +464,7 @@ void BuyDialog::action(const ActionEvent &event)
item->getColor(),
mAmountItems);
}
+#endif
else
{
npcHandler->buyItem(mNpcId,