summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-05 02:25:46 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-12 02:29:12 +0300
commit905c220036c36b3feaea9cafa4eac17d777ebea9 (patch)
treeda9835a7306fc87a3421eec122411df1ebc26828 /src/map
parent6c95923c54dd2899747c06ec0d1ac1e9295b9fab (diff)
downloadhercules-905c220036c36b3feaea9cafa4eac17d777ebea9.tar.gz
hercules-905c220036c36b3feaea9cafa4eac17d777ebea9.tar.bz2
hercules-905c220036c36b3feaea9cafa4eac17d777ebea9.tar.xz
hercules-905c220036c36b3feaea9cafa4eac17d777ebea9.zip
Fix packet struct packet_idle_unit.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/packets_struct.h3
2 files changed, 4 insertions, 1 deletions
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
@@ -787,6 +787,9 @@ struct packet_idle_unit {
#else
int32 weapon;
#endif
+#if PACKETVER_RE_NUM >= 20180704
+ int32 shield;
+#endif
int16 accessory;
#if PACKETVER < 7
int16 shield;