summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-01 07:22:17 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-01 07:22:17 +0000
commita750e617bbff351a9d82748c9b42d3ff453b762f (patch)
tree470393b07f21d49dd6e40f73efd19863be669ecc /src
parent3bd37700244cf224107ebf94d8b0d824c20c17df (diff)
downloadhercules-a750e617bbff351a9d82748c9b42d3ff453b762f.tar.gz
hercules-a750e617bbff351a9d82748c9b42d3ff453b762f.tar.bz2
hercules-a750e617bbff351a9d82748c9b42d3ff453b762f.tar.xz
hercules-a750e617bbff351a9d82748c9b42d3ff453b762f.zip
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12159 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char_sql/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 30e33f011..50f72718e 100644
--- a/src/char_sql/char.c
+++ b/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)