summaryrefslogtreecommitdiff
path: root/src/net/eathena/rouletterecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-14 02:40:31 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-14 02:40:31 +0300
commit1c30ebb589656b1d3bdb746ba7f36190e1dd4908 (patch)
tree74a9a4c10186e6a3f27f9a96adc3f957bed8c166 /src/net/eathena/rouletterecv.cpp
parenta3234e5f4354a4142638b789e5dbd239b45b3a62 (diff)
downloadplus-1c30ebb589656b1d3bdb746ba7f36190e1dd4908.tar.gz
plus-1c30ebb589656b1d3bdb746ba7f36190e1dd4908.tar.bz2
plus-1c30ebb589656b1d3bdb746ba7f36190e1dd4908.tar.xz
plus-1c30ebb589656b1d3bdb746ba7f36190e1dd4908.zip
Update packet SMSG_ROULETTE_INFO_ACK_TYPE 0x0a1c.
Diffstat (limited to 'src/net/eathena/rouletterecv.cpp')
-rw-r--r--src/net/eathena/rouletterecv.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/net/eathena/rouletterecv.cpp b/src/net/eathena/rouletterecv.cpp
index 2c245b30b..49666f49f 100644
--- a/src/net/eathena/rouletterecv.cpp
+++ b/src/net/eathena/rouletterecv.cpp
@@ -39,8 +39,17 @@ void RouletteRecv::processRouletteInfoAckType(Net::MessageIn &msg)
{
msg.readInt16("row");
msg.readInt16("position");
- msg.readInt16("item id");
- msg.readInt16("count");
+ if (msg.getVersion() >= 20180523)
+ {
+ msg.readInt32("item id");
+ msg.readInt16("count");
+ msg.readInt16("unused");
+ }
+ else
+ {
+ msg.readInt16("item id");
+ msg.readInt16("count");
+ }
}
}