diff options
author | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-24 10:57:15 +0000 |
---|---|---|
committer | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-24 10:57:15 +0000 |
commit | d98ba0ca473c8d893895b46f7f22e2cf5a58ea64 (patch) | |
tree | c52e13125f479411355a6fb06cb6f5d0e965bc6d /src/char | |
parent | 52c4432a0a9d215db467d76dbe0e4dfddbced4c5 (diff) | |
download | hercules-d98ba0ca473c8d893895b46f7f22e2cf5a58ea64.tar.gz hercules-d98ba0ca473c8d893895b46f7f22e2cf5a58ea64.tar.bz2 hercules-d98ba0ca473c8d893895b46f7f22e2cf5a58ea64.tar.xz hercules-d98ba0ca473c8d893895b46f7f22e2cf5a58ea64.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@346 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index 96a851295..5a3995be8 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3315,12 +3315,13 @@ int flush_timer(int tid, unsigned int tick, int id, int data){ void do_final(void) { int i; - + printf("Terminating server.\n"); // write online players files with no player for(i = 0; i < online_players_max; i++) { online_chars[i].char_id = -1; online_chars[i].server = -1; } + create_online_files(); if(online_chars) free(online_chars); @@ -3334,7 +3335,7 @@ void do_final(void) { delete_session(char_fd); for(i = 0; i < fd_max; i++) - if(session[i]->session_data) free(session[i]->session_data); + if(session[i] != NULL) free(session[i]); char_log("----End of char-server (normal end with closing of all files)." RETCODE); } |