diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-14 18:19:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-05 22:22:05 +0300 |
commit | 21557e413a1ed62d2b8321761009b80d13b09379 (patch) | |
tree | cc55e3734cf090477e488777a0c44ee3cb917511 | |
parent | 1ba4beaff44ff8ea774e671e390bfbf6d5ffff64 (diff) | |
download | hercules-21557e413a1ed62d2b8321761009b80d13b09379.tar.gz hercules-21557e413a1ed62d2b8321761009b80d13b09379.tar.bz2 hercules-21557e413a1ed62d2b8321761009b80d13b09379.tar.xz hercules-21557e413a1ed62d2b8321761009b80d13b09379.zip |
Fix compilation for old packet versions (Fixes #2438)
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index 5528fb8aa..44225ecb5 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2153,11 +2153,13 @@ static void char_send_HC_ACK_CHARINFO_PER_PAGE(int fd, struct char_session_data static void char_send_HC_ACK_CHARINFO_PER_PAGE_tail(int fd, struct char_session_data *sd) { +#if PACKETVER_MAIN_NUM >= 20130522 || PACKETVER_RE_NUM >= 20130327 || defined(PACKETVER_ZERO) WFIFOHEAD(fd, sizeof(struct PACKET_HC_ACK_CHARINFO_PER_PAGE)); struct PACKET_HC_ACK_CHARINFO_PER_PAGE *p = WFIFOP(fd, 0); p->packetId = HEADER_HC_ACK_CHARINFO_PER_PAGE; p->packetLen = sizeof(struct PACKET_HC_ACK_CHARINFO_PER_PAGE); WFIFOSET(fd, p->packetLen); +#endif } /* Sends character ban list */ |