summaryrefslogtreecommitdiff
path: root/src/net/eathena/buyingstorehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp5
1 files changed, 4 insertions, 1 deletions
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);