summaryrefslogtreecommitdiff
path: root/src/net/eathena/buysellhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 20:53:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 20:53:54 +0300
commit8b8efe383c502456a36d0f0faf5a2079b816243d (patch)
tree6224cd987b9820999c77e1898fea19df913674fc /src/net/eathena/buysellhandler.cpp
parent1425c495898e604c83db58f0bc4f53a4ac7c1df0 (diff)
downloadplus-8b8efe383c502456a36d0f0faf5a2079b816243d.tar.gz
plus-8b8efe383c502456a36d0f0faf5a2079b816243d.tar.bz2
plus-8b8efe383c502456a36d0f0faf5a2079b816243d.tar.xz
plus-8b8efe383c502456a36d0f0faf5a2079b816243d.zip
Fix version for market and some other packets.
Diffstat (limited to 'src/net/eathena/buysellhandler.cpp')
-rw-r--r--src/net/eathena/buysellhandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/eathena/buysellhandler.cpp b/src/net/eathena/buysellhandler.cpp
index 7f48821de..9fa8fbc5e 100644
--- a/src/net/eathena/buysellhandler.cpp
+++ b/src/net/eathena/buysellhandler.cpp
@@ -30,6 +30,7 @@
#include "debug.h"
extern Net::BuySellHandler *buySellHandler;
+extern int packetVersion;
namespace EAthena
{
@@ -63,6 +64,9 @@ void BuySellHandler::sendSellRequest(const std::string &nick A_UNUSED,
void BuySellHandler::close() const
{
+ if (packetVersion < 20131218)
+ return;
+
createOutPacket(CMSG_NPC_SHOP_CLOSE);
}