Browse Source

Fixed a bug in the disconnection part char-server (not sending you offline)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12590 54d463be-8e91-2dee-dedb-b68131a5f0ec
toms 17 years ago
parent
commit
e61bf34e4f
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/char_sql/char.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2008/04/14
+	* Fixed a bug in the disconnection part char-server (not sending you offline) [Toms]
 	* Changes to the configure script: [FlavioJS]
 	- added options --with-MYSQL_CFLAGS and --with-MYSQL_LIBS to allow manual setting of those variables
 2008/04/13

+ 1 - 1
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->fd != -1 && character->char_id != -1))
+	if (login_fd > 0 && !session[login_fd]->flag.eof && character->char_id != -1)
 	{
 		WFIFOHEAD(login_fd,6);
 		WFIFOW(login_fd,0) = 0x272c;