diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-04 19:45:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 69a7f70797b3433bfdaf510fb997469b8bf7ba4d (patch) | |
tree | d1a3c84bd486a59ae411c267085d02b5619c547b /src/net/eathena/tradehandler.cpp | |
parent | 549d21c0c9995c2120ea539cfb3551817df214a2 (diff) | |
download | plus-69a7f70797b3433bfdaf510fb997469b8bf7ba4d.tar.gz plus-69a7f70797b3433bfdaf510fb997469b8bf7ba4d.tar.bz2 plus-69a7f70797b3433bfdaf510fb997469b8bf7ba4d.tar.xz plus-69a7f70797b3433bfdaf510fb997469b8bf7ba4d.zip |
eathena; fix packet SMSG_TRADE_ITEM_ADD 0x080f.
Diffstat (limited to 'src/net/eathena/tradehandler.cpp')
-rw-r--r-- | src/net/eathena/tradehandler.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index 4de0ee779..f81d80e24 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -170,12 +170,16 @@ void TradeHandler::processTradeResponse2(Net::MessageIn &msg) const void TradeHandler::processTradeItemAdd(Net::MessageIn &msg) { - const int amount = msg.readInt32(); - const int type = msg.readInt16(); - const uint8_t identify = msg.readUInt8(); // identified flag - msg.readUInt8(); // attribute - const uint8_t refine = msg.readUInt8(); // refine - msg.skip(8); // card (4 shorts) + const int type = msg.readInt16("type"); + msg.readUInt8("item type"); + const int amount = msg.readInt32("amount"); + const uint8_t identify = msg.readUInt8("identify"); + msg.readUInt8("attribute"); + const uint8_t refine = msg.readUInt8("refine"); + msg.readInt16("card 0"); + msg.readInt16("card 1"); + msg.readInt16("card 2"); + msg.readInt16("card 3"); if (tradeWindow) { |