diff options
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r-- | src/gui/trade.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index 22eefc14..15a4d7e8 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -38,6 +38,7 @@ #include "gui/widgets/textfield.h" #include "gui/widgets/layout.h" +#include "net/inventoryhandler.h" #include "net/net.h" #include "net/tradehandler.h" @@ -56,8 +57,10 @@ TradeWindow::TradeWindow(): Window(_("Trade: You")), - mMyInventory(new Inventory(INVENTORY_SIZE)), - mPartnerInventory(new Inventory(INVENTORY_SIZE)), + mMyInventory(new Inventory(Net::getInventoryHandler() + ->getInventorySize())), + mPartnerInventory(new Inventory(Net::getInventoryHandler() + ->getInventorySize())), mStatus(PROPOSING) { setWindowName("Trade"); |