summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/shopwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index da8a4e41b..67c076912 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -355,7 +355,7 @@ void ShopWindow::action(const ActionEvent &event)
return;
#ifdef EATHENA_SUPPORT
- const Inventory *const inv = mHaveVending
+ const Inventory *const inv = mHaveVending && !isBuySelected
? PlayerInfo::getCartInventory() : PlayerInfo::getInventory();
#else
const Inventory *const inv = PlayerInfo::getInventory();