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/gui/windows/shopwindow.cpp | |
parent | 1ea7fb87c33c480ba6dabe99c28dd8d2f182d586 (diff) | |
download | plus-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.gz plus-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.bz2 plus-f018ab795955c5ab51f64cf2e630282b1f921af6.tar.xz plus-f018ab795955c5ab51f64cf2e630282b1f921af6.zip |
Fix compilation without eathena support.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-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; |