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
This commit is contained in:
ultramage
2008-02-01 07:22:17 +00:00
parent fe6aa47cdb
commit fb85ff7006
2 changed files with 3 additions and 1 deletions

View File

@@ -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)