diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-22 20:00:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-22 20:00:55 +0300 |
commit | b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191 (patch) | |
tree | 89a6497e681fe746b626d94e27fd52745b83b498 /src/net/eathena/traderecv.cpp | |
parent | d4b58f6dce665979a615cf5b73521ee37140e1d0 (diff) | |
download | manaplus-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.tar.gz manaplus-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.tar.bz2 manaplus-b44bcbdbaa5eb7f278444b8b48dbe6b8f6345191.tar.xz manaplus-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.cpp | 3 |
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 ++) { |