summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/packets_struct.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e86494cd1..985e0229f 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9672,7 +9672,9 @@ static void clif_msgtable_str_color(struct map_session_data *sd, enum clif_messa
p->PacketType = 0xa6f;
p->PacketLength = len;
p->messageId = msg_id;
+#if PACKETVER >= 20160406
p->color = color;
+#endif
safestrncpy(p->messageString, value, message_len);
p->messageString[message_len] = 0;
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index a9affc76b..c2363ce08 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -1928,7 +1928,9 @@ struct PACKET_ZC_FORMATSTRING_MSG_COLOR {
uint16 PacketType;
uint16 PacketLength;
uint16 messageId;
+#if PACKETVER >= 20160406
uint32 color;
+#endif
char messageString[];
} __attribute__((packed));