diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-10-30 21:59:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-07 06:27:59 +0300 |
commit | 6bf0cc3e848426169deb9cdbec0ee08f75000266 (patch) | |
tree | 7a4dfa56e4970f694b76299b5e2265d4c3f7d972 /src/map/clif.c | |
parent | 02293cef263fd93f8dc37bd14dd4eb319d46f88e (diff) | |
download | hercules-6bf0cc3e848426169deb9cdbec0ee08f75000266.tar.gz hercules-6bf0cc3e848426169deb9cdbec0ee08f75000266.tar.bz2 hercules-6bf0cc3e848426169deb9cdbec0ee08f75000266.tar.xz hercules-6bf0cc3e848426169deb9cdbec0ee08f75000266.zip |
Fix packet ZC_FORMATSTRING_MSG_COLOR for old clients.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 2 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; |