summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-13 20:46:13 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-13 20:46:13 +0000
commit9e03b158bb2f558c79a8df988cacf7bdf66df12e (patch)
tree8d3e9417c2a5feb12d081ae57bf30edc43f92948 /src/char/char.c
parentb111ed855ab5a114c62767f0a5a9dd4dad233db5 (diff)
downloadhercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.tar.gz
hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.tar.bz2
hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.tar.xz
hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.zip
Fixed char-server notifying map-servers only about first 30 maps (on other map-servers) (bugreport:5410).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15686 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index dccadc9fe..7f5d8950f 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2527,12 +2527,12 @@ int parse_frommap(int fd)
// Transmitting the maps of the other map-servers to the new map-server
for(x = 0; x < ARRAYLENGTH(server); x++) {
if (server[x].fd > 0 && x != id) {
- WFIFOHEAD(fd,10 +4*ARRAYLENGTH(server));
+ WFIFOHEAD(fd,10 +4*ARRAYLENGTH(server[x].map));
WFIFOW(fd,0) = 0x2b04;
WFIFOL(fd,4) = htonl(server[x].ip);
WFIFOW(fd,8) = htons(server[x].port);
j = 0;
- for(i = 0; i < ARRAYLENGTH(server); i++)
+ for(i = 0; i < ARRAYLENGTH(server[x].map); i++)
if (server[x].map[i])
WFIFOW(fd,10+(j++)*4) = server[x].map[i];
if (j > 0) {