From dc8df2e9205724c7d4c9a7b6599770ddd29aace3 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 30 Mar 2009 17:34:22 -0600 Subject: Fix a bug in trade There's still an offset problem that I can't figure out. --- src/gui/trade.cpp | 5 +++-- 1 file 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)) -- cgit v1.2.3-70-g09d2