diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-14 20:22:48 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-14 20:22:48 +0000 |
commit | 2f22028112e301768068c4b631141c84704a09a9 (patch) | |
tree | a3157e14f7f56cfcf66560eb30c47ca24d92d1e4 /src | |
parent | 9ed480bc0d17a069cd8430d3ccf2d5893c5c07ac (diff) | |
download | hercules-2f22028112e301768068c4b631141c84704a09a9.tar.gz hercules-2f22028112e301768068c4b631141c84704a09a9.tar.bz2 hercules-2f22028112e301768068c4b631141c84704a09a9.tar.xz hercules-2f22028112e301768068c4b631141c84704a09a9.zip |
* Fixed a possible crash in char_sql. (since r12575, later modified in r12590).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12593 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/char_sql/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 3cc82eb42..992e7892a 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -297,7 +297,7 @@ void set_char_offline(int char_id, int account_id) } } - if (login_fd > 0 && !session[login_fd]->flag.eof && character->char_id != -1) + if (login_fd > 0 && !session[login_fd]->flag.eof && (character == NULL || character->char_id != -1)) { WFIFOHEAD(login_fd,6); WFIFOW(login_fd,0) = 0x272c; |