summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/char/char.c2
-rw-r--r--src/char_sql/char.c4
2 files changed, 3 insertions, 3 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;
}
}
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index ff6dcb293..d1aedd37b 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2077,7 +2077,7 @@ int parse_tologin(int fd) {
for(i = 0; i < fd_max; i++) {
if (session[i] && (sd = (struct char_session_data*)session[i]->session_data)) {
if (sd->account_id == acc) {
- session[i]->eof = 1;
+ set_eof(i);
break;
}
}
@@ -2122,7 +2122,7 @@ int parse_tologin(int fd) {
for(i = 0; i < fd_max; i++) {
if (session[i] && (sd = (struct char_session_data*)session[i]->session_data)) {
if (sd->account_id == RFIFOL(fd,2)) {
- session[i]->eof = 1;
+ set_eof(i);
break;
}
}