From 3e622efc563e7359000c48eef265d6616026e52a Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sun, 15 Feb 2015 18:38:30 +0300
Subject: Allow add to buying shop item from inventory. Before was from cart.

---
 src/gui/windows/shopwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
-- 
cgit v1.2.3-70-g09d2