summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-19 07:14:53 +0300
committerAndrei Karas <akaras@inbox.ru>2019-06-02 00:23:24 +0300
commit8db8340d611fa22f7ab0f4187a46a18ccf031649 (patch)
tree53e25752fc992b6236ca7fe6a55f274d1a7bf602
parent0f4fd231e6660860c991bbcc59c075547245e71d (diff)
downloadhercules-8db8340d611fa22f7ab0f4187a46a18ccf031649.tar.gz
hercules-8db8340d611fa22f7ab0f4187a46a18ccf031649.tar.bz2
hercules-8db8340d611fa22f7ab0f4187a46a18ccf031649.tar.xz
hercules-8db8340d611fa22f7ab0f4187a46a18ccf031649.zip
Fix version check for packet ZC_PING
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/packets_struct.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 2bab6391c..0a1b4bdd2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -22537,7 +22537,7 @@ static void clif_parse_ping(int fd, struct map_session_data *sd)
static void clif_ping(struct map_session_data *sd)
{
-#if PACKETVER_MAIN_NUM >= 20190213 || PACKETVER_RE_NUM >= 20190213 || PACKETVER_ZERO_NUM >= 20190130
+#if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220
nullpo_retv(sd);
struct PACKET_ZC_PING p;
p.packetType = HEADER_ZC_PING;
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 9d77540e2..e3070ae71 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3253,7 +3253,7 @@ struct PACKET_CZ_PING {
DEFINE_PACKET_HEADER(CZ_PING, 0x0b1c);
#endif
-#if PACKETVER_MAIN_NUM >= 20190213 || PACKETVER_RE_NUM >= 20190213 || PACKETVER_ZERO_NUM >= 20190130
+#if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220
struct PACKET_ZC_PING {
int16 packetType;
} __attribute__((packed));