summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-03-11 15:27:30 +0100
committerGitHub <noreply@github.com>2018-03-11 15:27:30 +0100
commitc46b6d59644675c7c037238afb609f42230a9977 (patch)
tree85c44038733db83d243794b7cad34d1bdc98dcf1 /src/char
parentfd137c535f646f066520868ae65543989d590d51 (diff)
parent4f9223991eb2029c1069d57eab219c303db42217 (diff)
downloadhercules-c46b6d59644675c7c037238afb609f42230a9977.tar.gz
hercules-c46b6d59644675c7c037238afb609f42230a9977.tar.bz2
hercules-c46b6d59644675c7c037238afb609f42230a9977.tar.xz
hercules-c46b6d59644675c7c037238afb609f42230a9977.zip
Merge pull request #1983 from 4144/updatepackets
Update packets and keys for clients up to 20180221.
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c5
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);
}