From 8b8efe383c502456a36d0f0faf5a2079b816243d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Sep 2016 20:53:54 +0300 Subject: Fix version for market and some other packets. --- src/net/eathena/buysellhandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/eathena/buysellhandler.cpp') 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); } -- cgit v1.2.3-70-g09d2