diff options
-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)) |