summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index c5ef5ce36..49ccb7016 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1850,7 +1850,7 @@ int disconnect_player(int account_id) {
for(i = 0; i < fd_max; i++) {
if (session[i] && (sd = (struct char_session_data*)session[i]->session_data)) {
if (sd->account_id == account_id) {
- session[i]->eof = 1;
+ set_eof(i);
return 1;
}
}