diff options
author | Haru <haru@dotalux.com> | 2018-07-15 20:21:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 20:21:43 +0200 |
commit | 02e7a858fb7bcb178040f85a28a6c553d2f5d360 (patch) | |
tree | 47de0f3872fb47ac9072439ddbc36b52f8a661e5 /src/char/char.c | |
parent | 8d028cbacdc4a424621c94a521c375baa234bdce (diff) | |
parent | 83c26fc34c8ae4badc06b3ff41fa528033a5c840 (diff) | |
download | hercules-02e7a858fb7bcb178040f85a28a6c553d2f5d360.tar.gz hercules-02e7a858fb7bcb178040f85a28a6c553d2f5d360.tar.bz2 hercules-02e7a858fb7bcb178040f85a28a6c553d2f5d360.tar.xz hercules-02e7a858fb7bcb178040f85a28a6c553d2f5d360.zip |
Merge pull request #2126 from 4144/updatepacket
Update packets and messages up to 2018-07-11
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c index 486cc7c03..914017092 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -4419,9 +4419,7 @@ static void char_send_map_info(int fd, int i, uint32 subnet_map_ip, struct mmo_c mapindex->getmapname_ext(mapindex_id2name(cd->last_point.map), WFIFOP(fd, 6)); WFIFOL(fd, 22) = htonl((subnet_map_ip) ? subnet_map_ip : chr->server[i].ip); WFIFOW(fd, 26) = sockt->ntows(htons(chr->server[i].port)); // [!] LE byte order here [!] -#if PACKETVER < 20170329 - memset(WFIFOP(fd, 28), 0, 128); -#else +#if PACKETVER >= 20170329 if (dnsHost != NULL) { safestrncpy(WFIFOP(fd, 28), dnsHost, 128); } else { |