summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index a40d627b8..cf6ea56e7 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -339,8 +339,10 @@ static int char_db_kickoffline(DBKey key, void* data, va_list ap)
mapif_disconnectplayer(server[character->server].fd, character->account_id, character->char_id, 1);
else if (character->waiting_disconnect == -1)
set_char_offline(character->char_id, character->account_id);
- else return 0;
- return 1; // WTF, pick one!
+ else
+ return 0; // fail
+
+ return 1;
}
void set_all_offline(int id)