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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user