summaryrefslogtreecommitdiff
path: root/src/net/eathena/traderecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-22 20:00:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-22 20:00:55 +0300
commitb44bcbdbaa5eb7f278444b8b48dbe6b8f6345191 (patch)
tree89a6497e681fe746b626d94e27fd52745b83b498 /src/net/eathena/traderecv.cpp
parentd4b58f6dce665979a615cf5b73521ee37140e1d0 (diff)
downloadmv-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.tar.gz
mv-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.tar.bz2
mv-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.tar.xz
mv-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.zip
Fix packet version usage for hercules without evol plugin.
Diffstat (limited to 'src/net/eathena/traderecv.cpp')
-rw-r--r--src/net/eathena/traderecv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/traderecv.cpp b/src/net/eathena/traderecv.cpp
index 3d7d51dfe..b77c8af87 100644
--- a/src/net/eathena/traderecv.cpp
+++ b/src/net/eathena/traderecv.cpp
@@ -80,7 +80,8 @@ void TradeRecv::processTradeItemAdd(Net::MessageIn &msg)
int cards[maxCards];
for (int f = 0; f < maxCards; f++)
cards[f] = msg.readInt16("card");
- if (serverVersion >= 8 && packetVersion >= 20150226)
+ if ((serverVersion >= 8 || serverVersion == 0) &&
+ packetVersion >= 20150226)
{
for (int f = 0; f < 5; f ++)
{