summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-15 18:38:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-15 18:38:30 +0300
commit3e622efc563e7359000c48eef265d6616026e52a (patch)
tree6c9b82a3ab4a5532ab8c2ca9d60e803d15d0890f /src/gui/windows
parente7fd7f2559a44b78f542310ca5708dd02f623a3c (diff)
downloadmanaverse-3e622efc563e7359000c48eef265d6616026e52a.tar.gz
manaverse-3e622efc563e7359000c48eef265d6616026e52a.tar.bz2
manaverse-3e622efc563e7359000c48eef265d6616026e52a.tar.xz
manaverse-3e622efc563e7359000c48eef265d6616026e52a.zip
Allow add to buying shop item from inventory. Before was from cart.
Diffstat (limited to 'src/gui/windows')
-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();