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 03:02:37 +0300
commit639148d9d301bd2dc20893fcf0571eb5c8e922f3 (patch)
treedd67dce5139b205820ae5d987fb7ff0a225df667 /src/net/eathena/rouletterecv.cpp
parent45527f8597dfac68e914a798184282faeb1493f2 (diff)
downloadplus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.tar.gz
plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.tar.bz2
plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.tar.xz
plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.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");