Bläddra i källkod

- Fixed crash when char-server sends to a "random" map-server online on connect.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8960 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 år sedan
förälder
incheckning
f91836f32c
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/char_sql/char.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/10/09
+	* Fixed crash when char-server sends to a "random" map-server online on
+	  connect. Thanks to TheUltraMage for pointing it out. [Skotlex]
 	* Should have fixed being petrified not reducing your defense and
 	  increaseing your mdef. [Skotlex]
 	* Fixed SC_NOCHAT printing the "skills are now available" message twice on

+ 1 - 1
src/char_sql/char.c

@@ -3310,7 +3310,7 @@ int parse_char(int fd) {
 					for(j = 0; j < MAX_MAP_SERVERS; j++)
 						if (server_fd[j] > 0 && server[j].map[0])  {
 							i = j;
-							ShowDebug("Map-server #%d found with a map: '%s'.\n", j, server[j].map[0]);
+							ShowDebug("Map-server #%d found with a map: '%s'.\n", j, mapindex_id2name(server[j].map[0]));
 							break;
 						}
 					// if no map-servers are connected, we send: server closed