diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-08 17:40:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-08 17:40:49 +0300 |
commit | f018ab795955c5ab51f64cf2e630282b1f921af6 (patch) | |
tree | 413f920f6a9299c6f3e90eadb34a234228b42e1d /src | |
parent | 1ea7fb87c33c480ba6dabe99c28dd8d2f182d586 (diff) | |
download | manaplus-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.gz manaplus-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.bz2 manaplus-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.xz manaplus-f018ab795955c5ab51f64cf2e630282b1f921af6.zip |
Fix compilation without eathena support.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 6 |
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; |