diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-11 15:58:58 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-11 15:58:58 +0000 |
commit | 94661807ec510d48ca6dd135f0e02a3a835bc614 (patch) | |
tree | fae3295a165e320a8d65fd6e0eb8430212099dc7 /src/char_sql/char.c | |
parent | 77cac05d9b256039f7b2b5b00f901ad76fddfe86 (diff) | |
download | hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.tar.gz hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.tar.bz2 hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.tar.xz hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.zip |
* Moved all changes in the SVN to a new SVN-Changelog.txt
* Synchronise storage as well when saving character
* Added fix for super novices' Guardian Angel system crashing
* Check if login server is online before setting character to online (in SQL)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1076 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 4 |
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); |