From 905c220036c36b3feaea9cafa4eac17d777ebea9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 5 Jul 2018 02:25:46 +0300 Subject: Fix packet struct packet_idle_unit. --- src/map/clif.c | 2 +- src/map/packets_struct.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index f1b776ded..e6aadc80f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1103,7 +1103,7 @@ static void clif_set_unit_idle(struct block_list *bl, struct map_session_data *t p.head = vd->hair_style; p.weapon = vd->weapon; p.accessory = vd->head_bottom; -#if PACKETVER < 7 +#if PACKETVER < 7 || PACKETVER_RE_NUM >= 20180704 p.shield = vd->shield; #endif p.accessory2 = vd->head_top; diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index aa16017a3..c6ce76c3b 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -786,6 +786,9 @@ struct packet_idle_unit { int16 weapon; #else int32 weapon; +#endif +#if PACKETVER_RE_NUM >= 20180704 + int32 shield; #endif int16 accessory; #if PACKETVER < 7 -- cgit v1.2.3-70-g09d2