diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-06 23:19:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-06 23:19:13 +0300 |
commit | c11ec141833b307db60819b47d56dbadbe727044 (patch) | |
tree | a5a6a13e6ffd6f8ff46c9d251a818a1c0cf6f861 /src/net/eathena/buyingstorehandler.cpp | |
parent | 910aed08dfd5cdcb566408f4791197ff4d121c8d (diff) | |
download | mv-c11ec141833b307db60819b47d56dbadbe727044.tar.gz mv-c11ec141833b307db60819b47d56dbadbe727044.tar.bz2 mv-c11ec141833b307db60819b47d56dbadbe727044.tar.xz mv-c11ec141833b307db60819b47d56dbadbe727044.zip |
Fix some packets id conflicts.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 5 |
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); |