summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-26 03:02:37 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-26 22:01:35 +0300
commitde90520de303659fe639794544c2e19d462b3907 (patch)
tree36b306a26e2c9dd422aede36f2f9ca3158ffbae2 /src/net/eathena/auctionrecv.cpp
parent45527f8597dfac68e914a798184282faeb1493f2 (diff)
downloadManaVerse-de90520de303659fe639794544c2e19d462b3907.tar.gz
ManaVerse-de90520de303659fe639794544c2e19d462b3907.tar.bz2
ManaVerse-de90520de303659fe639794544c2e19d462b3907.tar.xz
ManaVerse-de90520de303659fe639794544c2e19d462b3907.zip
Add support for changed item id size in packets.
From some packet version hercules support item id fields as int32.
Diffstat (limited to 'src/net/eathena/auctionrecv.cpp')
-rw-r--r--src/net/eathena/auctionrecv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/auctionrecv.cpp b/src/net/eathena/auctionrecv.cpp
index eed21a5e2..3f91d89a8 100644
--- a/src/net/eathena/auctionrecv.cpp
+++ b/src/net/eathena/auctionrecv.cpp
@@ -47,14 +47,14 @@ void AuctionRecv::processAuctionResults(Net::MessageIn &msg)
{
msg.readInt32("auction id");
msg.readString(24, "seller name");
- msg.readInt32("item id");
+ msg.readInt16("item id"); // here item always 16 bit
msg.readInt32("auction type");
msg.readInt16("item amount"); // always 1
msg.readUInt8("identify");
msg.readUInt8("attribute");
msg.readUInt8("refine");
for (int d = 0; d < maxCards; d ++)
- msg.readUInt16("card");
+ msg.readUInt16("card"); // here item always 16 bit
msg.readInt32("price");
msg.readInt32("buy now");
msg.readString(24, "buyer name");