From 8db8340d611fa22f7ab0f4187a46a18ccf031649 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 May 2019 07:14:53 +0300 Subject: Fix version check for packet ZC_PING --- src/map/clif.c | 2 +- src/map/packets_struct.h | 2 +- 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)); -- cgit v1.2.3-60-g2f50