From 9f8da99f6b6266a7456d3be4d38880a3bd761932 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 May 2016 22:53:57 +0300 Subject: Add into network code function readUInt16. Also fix reading cards id. --- src/net/tmwa/traderecv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/tmwa/traderecv.cpp') diff --git a/src/net/tmwa/traderecv.cpp b/src/net/tmwa/traderecv.cpp index f68bee9f5..29e88b2c4 100644 --- a/src/net/tmwa/traderecv.cpp +++ b/src/net/tmwa/traderecv.cpp @@ -66,7 +66,7 @@ void TradeRecv::processTradeItemAdd(Net::MessageIn &msg) const uint8_t refine = msg.readUInt8("refine"); int cards[maxCards]; for (int f = 0; f < maxCards; f++) - cards[f] = msg.readInt16("card"); + cards[f] = msg.readUInt16("card"); if (tradeWindow) { -- cgit v1.2.3-60-g2f50