summaryrefslogtreecommitdiff
path: root/src/net/eathena/traderecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-01 01:13:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-01 01:13:47 +0300
commitc14fb368c606d0ca4e0c73fb845b38e2dc84c958 (patch)
treeee597f2d3f3a164a08e7f038636b7a6953028a0b /src/net/eathena/traderecv.cpp
parent9076e148535c6815c88a0c859f333333eb94a88c (diff)
downloadplus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.tar.gz
plus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.tar.bz2
plus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.tar.xz
plus-c14fb368c606d0ca4e0c73fb845b38e2dc84c958.zip
Add versions to packets where inside exists version checks.
Diffstat (limited to 'src/net/eathena/traderecv.cpp')
-rw-r--r--src/net/eathena/traderecv.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/eathena/traderecv.cpp b/src/net/eathena/traderecv.cpp
index e9d7537bf..373884dac 100644
--- a/src/net/eathena/traderecv.cpp
+++ b/src/net/eathena/traderecv.cpp
@@ -41,7 +41,6 @@
#include "debug.h"
-extern int packetVersion;
extern int serverVersion;
namespace EAthena
@@ -82,7 +81,7 @@ void TradeRecv::processTradeItemAdd(Net::MessageIn &msg)
for (int f = 0; f < maxCards; f++)
cards[f] = msg.readInt16("card");
if ((serverVersion >= 8 || serverVersion == 0) &&
- packetVersion >= 20150226)
+ msg.getVersion() >= 20150226)
{
for (int f = 0; f < 5; f ++)
{