Sfoglia il codice sorgente

Fixed sql charserver crashing when mapserver is disconnected and someone does a double login (bugreport:870)
- it was a typo in r11410

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12159 54d463be-8e91-2dee-dedb-b68131a5f0ec

ultramage 17 anni fa
parent
commit
fb85ff7006
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/char_sql/char.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2008/02/01
+	* Fixed sql charserver crashing sometimes (bugreport:870) [ultramage]
 2008/01/29
 	* Plagiarize can no longer copy skill levels beyond their max skill_db
 	  value.

+ 1 - 1
src/char_sql/char.c

@@ -1896,7 +1896,7 @@ int parse_fromlogin(int fd)
 			int aid = RFIFOL(fd,2);
 			if ((character = idb_get(online_char_db, aid)) != NULL)
 			{	//Kick out this player.
-				if( character->server != -1 )
+				if( character->server > -1 )
 				{	//Kick it from the map server it is on.
 					mapif_disconnectplayer(server[character->server].fd, character->account_id, character->char_id, 2);
 					if (character->waiting_disconnect == -1)