summaryrefslogtreecommitdiff
path: root/src/net/eathena/rouletterecv.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/rouletterecv.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/rouletterecv.cpp')
-rw-r--r--src/net/eathena/rouletterecv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/rouletterecv.cpp b/src/net/eathena/rouletterecv.cpp
index 49666f49f..352da948a 100644
--- a/src/net/eathena/rouletterecv.cpp
+++ b/src/net/eathena/rouletterecv.cpp
@@ -57,7 +57,7 @@ void RouletteRecv::processRouletteItemAck(Net::MessageIn &msg)
{
UNIMPLEMENTEDPACKET;
msg.readUInt8("result");
- msg.readInt16("item id");
+ msg.readItemId("item id");
}
void RouletteRecv::processRouletteGenerateAckType(Net::MessageIn &msg)
@@ -66,7 +66,7 @@ void RouletteRecv::processRouletteGenerateAckType(Net::MessageIn &msg)
msg.readUInt8("result");
msg.readInt16("step");
msg.readInt16("idx");
- msg.readInt16("item id");
+ msg.readItemId("item id");
msg.readInt32("remain gold");
msg.readInt32("remain silver");
msg.readInt32("remain bronze");
@@ -79,7 +79,7 @@ void RouletteRecv::processRouletteOpenAck(Net::MessageIn &msg)
msg.readInt32("serial");
msg.readUInt8("step");
msg.readUInt8("idx");
- msg.readInt16("additional item id");
+ msg.readItemId("additional item id");
msg.readInt32("gold point");
msg.readInt32("silver point");
msg.readInt32("bronze point");