diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-15 18:38:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-15 18:38:30 +0300 |
commit | 3e622efc563e7359000c48eef265d6616026e52a (patch) | |
tree | 6c9b82a3ab4a5532ab8c2ca9d60e803d15d0890f /src | |
parent | e7fd7f2559a44b78f542310ca5708dd02f623a3c (diff) | |
download | manaplus-3e622efc563e7359000c48eef265d6616026e52a.tar.gz manaplus-3e622efc563e7359000c48eef265d6616026e52a.tar.bz2 manaplus-3e622efc563e7359000c48eef265d6616026e52a.tar.xz manaplus-3e622efc563e7359000c48eef265d6616026e52a.zip |
Allow add to buying shop item from inventory. Before was from cart.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 2 |
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(); |