summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendingrecv.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/vendingrecv.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/vendingrecv.cpp')
-rw-r--r--src/net/eathena/vendingrecv.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/eathena/vendingrecv.cpp b/src/net/eathena/vendingrecv.cpp
index 0e6c33434..7e088a2b0 100644
--- a/src/net/eathena/vendingrecv.cpp
+++ b/src/net/eathena/vendingrecv.cpp
@@ -100,7 +100,8 @@ void VendingRecv::processItemsList(Net::MessageIn &msg)
msg.readUInt8("refine");
for (int d = 0; d < maxCards; d ++)
cards[d] = msg.readInt16("card");
- if (serverVersion >= 8 && packetVersion >= 20150226)
+ if ((serverVersion >= 8 || serverVersion == 0) &&
+ packetVersion >= 20150226)
{
for (int d = 0; d < 5; d ++)
{
@@ -143,7 +144,8 @@ void VendingRecv::processOpen(Net::MessageIn &msg)
msg.readUInt8("refine");
for (int d = 0; d < maxCards; d ++)
msg.readInt16("card");
- if (serverVersion >= 8 && packetVersion >= 20150226)
+ if ((serverVersion >= 8 || serverVersion == 0) &&
+ packetVersion >= 20150226)
{
for (int d = 0; d < 5; d ++)
{