From 5c80bbfd023a1a3ab390ea46ccb763309ad5ab27 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Apr 2016 18:14:03 +0300 Subject: Sort more packets. Add version checks inside packets. --- src/net/eathena/questrecv.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/net/eathena/questrecv.cpp') diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp index b28f6c21a..206ed7798 100644 --- a/src/net/eathena/questrecv.cpp +++ b/src/net/eathena/questrecv.cpp @@ -69,9 +69,12 @@ void QuestRecv::processAddQuests(Net::MessageIn &msg) { const int var = msg.readInt32("quest id"); const int val = msg.readUInt8("state"); - msg.readInt32("time diff"); - msg.readInt32("time"); - msg.readInt16("objectives count"); + if (msg.getVersion() >= 20141022) + { + msg.readInt32("time diff"); + msg.readInt32("time"); + msg.readInt16("objectives count"); + } if (questsWindow) questsWindow->updateQuest(var, val); if (skillDialog) -- cgit v1.2.3-70-g09d2