From f018ab795955c5ab51f64cf2e630282b1f921af6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Feb 2015 17:40:49 +0300 Subject: Fix compilation without eathena support. --- src/gui/windows/shopwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui') 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; -- cgit v1.2.3-70-g09d2