Explorar o código

Fixed char-server notifying map-servers only about first 30 maps (on other map-servers) (bugreport:5410).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15686 54d463be-8e91-2dee-dedb-b68131a5f0ec
gepard1984 %!s(int64=13) %!d(string=hai) anos
pai
achega
38b210138c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/char/char.c

+ 2 - 2
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) {