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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 30c16c5b9..de28fea34 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -173,7 +173,9 @@ void set_char_online(int char_id, int account_id) {
}
}
- WFIFOW(login_fd,0) = 0x272b;
+ if (login_fd <= 0 || session[login_fd]->eof)
+ return;
+ WFIFOW(login_fd,0) = 0x272b;
WFIFOL(login_fd,2) = account_id;
WFIFOSET(login_fd,6);