summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-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;