From c14fb368c606d0ca4e0c73fb845b38e2dc84c958 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Apr 2016 01:13:47 +0300 Subject: Add versions to packets where inside exists version checks. --- src/net/eathena/beingrecv.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/net/eathena/beingrecv.cpp') diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index 156c81d8f..a70c68bd8 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -65,7 +65,6 @@ #include "debug.h" -extern int packetVersion; extern int serverVersion; namespace EAthena @@ -411,7 +410,7 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg) dstBeing->setHP(hp); msg.readInt8("is boss"); - if (packetVersion >= 20150513) + if (msg.getVersion() >= 20150513) { msg.readInt16("body2"); msg.readString(24, "name"); @@ -581,7 +580,7 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg) dstBeing->setHP(hp); msg.readInt8("is boss"); - if (packetVersion >= 20150513) + if (msg.getVersion() >= 20150513) { msg.readInt16("body2"); msg.readString(24, "name"); @@ -731,7 +730,7 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg) dstBeing->setHP(hp); msg.readInt8("is boss"); - if (packetVersion >= 20150513) + if (msg.getVersion() >= 20150513) { msg.readInt16("body2"); msg.readString(24, "name"); -- cgit v1.2.3-70-g09d2