From c11ec141833b307db60819b47d56dbadbe727044 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Apr 2016 23:19:13 +0300 Subject: Fix some packets id conflicts. --- src/net/eathena/buyingstorehandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 88928183c..010a4a969 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -33,6 +33,7 @@ #include "debug.h" extern Net::BuyingStoreHandler *buyingStoreHandler; +extern int packetVersion; namespace EAthena { @@ -63,6 +64,8 @@ void BuyingStoreHandler::create(const std::string &name, void BuyingStoreHandler::close() const { + if (packetVersion < 20100420) + return; createOutPacket(CMSG_BUYINGSTORE_CLOSE); PlayerInfo::enableVending(false); } @@ -80,7 +83,7 @@ void BuyingStoreHandler::sell(const Being *const being, const Item *const item, const int amount) const { - if (!being || !item) + if (!being || !item || packetVersion < 20100420) return; createOutPacket(CMSG_BUYINGSTORE_SELL); -- cgit v1.2.3-70-g09d2