summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp7
1 files changed, 3 insertions, 4 deletions
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");