diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-23 01:27:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-23 01:27:45 +0300 |
commit | 9be90b76adb1518c4ffe0e365a18c5afcc3158f2 (patch) | |
tree | bbfea959321e05c329f18ac37757be91f38b9df8 /src/net/tmwa/tradehandler.cpp | |
parent | 7f1053c5ce9e80485730290d002f7ae25db83996 (diff) | |
download | plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.tar.gz plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.tar.bz2 plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.tar.xz plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.zip |
Add item type to item object.
Diffstat (limited to 'src/net/tmwa/tradehandler.cpp')
-rw-r--r-- | src/net/tmwa/tradehandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index f85bdfc49..3a62c086f 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -189,14 +189,14 @@ void TradeHandler::processTradeItemAdd(Net::MessageIn &msg) { if (serverFeatures->haveItemColors()) { - tradeWindow->addItem2(type, + tradeWindow->addItem2(type, 0, cards, 4, false, amount, refine, identify, true, false, false, false); } else { - tradeWindow->addItem2(type, + tradeWindow->addItem2(type, 0, cards, 4, false, amount, refine, 1, identify != 0, false, false, false); @@ -228,7 +228,7 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) // Successfully added item if (tradeWindow) { - tradeWindow->addItem2(item->getId(), + tradeWindow->addItem2(item->getId(), item->getType(), item->getCards(), 4, true, quantity, item->getRefine(), item->getColor(), item->getIdentified(), item->getDamaged(), |