summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-30 17:34:22 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-30 17:34:22 -0600
commitdc8df2e9205724c7d4c9a7b6599770ddd29aace3 (patch)
treefb8d8ac5a083e61d187405c59f3c683351742837 /src/gui
parent61392840d52a3976b886f7638ff5babcb5509c49 (diff)
downloadmana-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.tar.gz
mana-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.tar.bz2
mana-dc8df2e9205724c7d4c9a7b6599770ddd29aace3.tar.xz
mana-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.cpp5
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))