From 51706f2ba18b90a1971b9a5c7a340ce77f23389a Mon Sep 17 00:00:00 2001 From: Danilo Lemes <13068064+Danil0v3s@users.noreply.github.com> Date: Mon, 7 Feb 2022 23:22:04 +0000 Subject: [PATCH] Wrap function body to match struct directives (#6604) Fixes #6603 --- src/map/clif.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index b7d37a87ca..418b45607f 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -16363,6 +16363,7 @@ void clif_parse_Mail_cancelwrite( int fd, struct map_session_data *sd ){ /// 0a14 .L .W .W (ZC_CHECK_RECEIVE_CHARACTER_NAME) /// 0a51 .L .W .W .24B (ZC_CHECK_RECEIVE_CHARACTER_NAME2) void clif_Mail_Receiver_Ack( struct map_session_data* sd, uint32 char_id, short class_, uint32 level, const char* name ){ +#if PACKETVER >= 20141119 PACKET_ZC_CHECKNAME p = { 0 }; p.PacketType = HEADER_ZC_CHECKNAME; @@ -16373,6 +16374,7 @@ void clif_Mail_Receiver_Ack( struct map_session_data* sd, uint32 char_id, short strncpy(p.Name, name, NAME_LENGTH); #endif clif_send(&p, sizeof(p), &sd->bl, SELF); +#endif } /// Request information about the recipient