From 3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Apr 2016 21:51:54 +0300 Subject: Sort more packets. Add version checks inside packets. --- src/net/eathena/chatrecv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/chatrecv.cpp') diff --git a/src/net/eathena/chatrecv.cpp b/src/net/eathena/chatrecv.cpp index 854647749..707012c0f 100644 --- a/src/net/eathena/chatrecv.cpp +++ b/src/net/eathena/chatrecv.cpp @@ -325,7 +325,8 @@ void ChatRecv::processWhisperResponse(Net::MessageIn &msg) BLOCK_START("ChatRecv::processWhisperResponse") const uint8_t type = msg.readUInt8("response"); - msg.readInt32("unknown"); + if (msg.getVersion() >= 20131223) + msg.readInt32("unknown"); if (type == 1 && chatWindow) { const std::string nick = Ea::ChatRecv::getLastWhisperNick(); -- cgit v1.2.3-70-g09d2