summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-08 17:40:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-08 17:40:49 +0300
commitf018ab795955c5ab51f64cf2e630282b1f921af6 (patch)
tree413f920f6a9299c6f3e90eadb34a234228b42e1d
parent1ea7fb87c33c480ba6dabe99c28dd8d2f182d586 (diff)
downloadmv-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.gz
mv-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.bz2
mv-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.xz
mv-f018ab795955c5ab51f64cf2e630282b1f921af6.zip
Fix compilation without eathena support.
-rw-r--r--src/gui/windows/shopwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 07ec1d001..63bef3d55 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -276,6 +276,7 @@ void ShopWindow::action(const ActionEvent &event)
isBuySelected = false;
updateSelection();
}
+#ifdef EATHENA_SUPPORT
else if (eventId == "publish")
{
if (mEnableVending)
@@ -321,12 +322,17 @@ void ShopWindow::action(const ActionEvent &event)
shopRenameListener.setDialog(dialog);
dialog->addActionListener(&shopRenameListener);
}
+#endif
if (mSelectedItem < 1)
return;
+#ifdef EATHENA_SUPPORT
const Inventory *const inv = mHaveVending
? PlayerInfo::getCartInventory() : PlayerInfo::getInventory();
+#else
+ const Inventory *const inv = PlayerInfo::getInventory();
+#endif
if (!inv)
return;