diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-24 23:48:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-11 04:32:23 +0300 |
commit | 4f9223991eb2029c1069d57eab219c303db42217 (patch) | |
tree | 32107776e0d54d62738c93a34a0ca010a7adc352 /src/char | |
parent | 7b72dee98c9cac94fe94c24d5ca791fac9f9f4ad (diff) | |
download | hercules-4f9223991eb2029c1069d57eab219c303db42217.tar.gz hercules-4f9223991eb2029c1069d57eab219c303db42217.tar.bz2 hercules-4f9223991eb2029c1069d57eab219c303db42217.tar.xz hercules-4f9223991eb2029c1069d57eab219c303db42217.zip |
Fix packet character name request reply for 20180221 clients.
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index aef35f216..0069e7f1d 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3328,7 +3328,12 @@ void char_char_name_ack(int fd, int char_id) WFIFOHEAD(fd,30); WFIFOW(fd,0) = 0x2b09; WFIFOL(fd,2) = char_id; +#if !defined(PACKETVER_ZERO) && (PACKETVER >= 20180307 || (defined(PACKETVER_RE) && PACKETVER >= 20180221)) + if (chr->loadName(char_id, WFIFOP(fd,6)) == 0) + WFIFOL(fd, 6) = 0; +#else chr->loadName(char_id, WFIFOP(fd,6)); +#endif WFIFOSET(fd,30); } |