diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 17:34:22 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 17:34:22 -0600 |
commit | dc8df2e9205724c7d4c9a7b6599770ddd29aace3 (patch) | |
tree | fb8d8ac5a083e61d187405c59f3c683351742837 /src/gui | |
parent | 61392840d52a3976b886f7638ff5babcb5509c49 (diff) | |
download | mana-client-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.tar.gz mana-client-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.tar.bz2 mana-client-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.tar.xz mana-client-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.zip |
Fix a bug in trade
There's still an offset problem that I can't figure out.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/trade.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index e6df9ad8..ce40f6ab 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -282,12 +282,13 @@ void TradeWindow::action(const gcn::ActionEvent &event) if (event.getId() == "add") { - if (!inventoryWindow->isVisible()) return; + if (!inventoryWindow->isVisible()) + return; if (!item) return; - if (mMyInventory->getFreeSlot() < 1) + if (mMyInventory->getFreeSlot() == -1) return; if (mMyInventory->contains(item)) |