summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-26 22:15:25 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-26 22:15:25 +0300
commitec96f90c72aa30127faf3099cbf1619679d7a60a (patch)
treeb48d4b7139d827ae1cd4660314cbdbffacfd39b7
parent0177c9c0066e5679d8913752db28c6005d81ff44 (diff)
downloadmanaverse-ec96f90c72aa30127faf3099cbf1619679d7a60a.tar.gz
manaverse-ec96f90c72aa30127faf3099cbf1619679d7a60a.tar.bz2
manaverse-ec96f90c72aa30127faf3099cbf1619679d7a60a.tar.xz
manaverse-ec96f90c72aa30127faf3099cbf1619679d7a60a.zip
Fix version check for packet CMSG_NPC_CASH_SHOP_REQUEST_TAB.
-rw-r--r--src/net/eathena/cashshophandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index 3585c4903..1953fafb6 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -145,8 +145,11 @@ void CashShopHandler::requestPoints() const
void CashShopHandler::requestTab(const int tab) const
{
- if (packetVersion < 20110718)
+ if (packetVersion < 20110222 ||
+ packetVersion >= 20120000)
+ {
return;
+ }
createOutPacket(CMSG_NPC_CASH_SHOP_REQUEST_TAB);
outMsg.writeInt16(CAST_S16(tab), "tab");
}