فهرست منبع

* Fixed character deletion working on SQL without an email address (Thanks to Valaris) [Zephiris]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5449 54d463be-8e91-2dee-dedb-b68131a5f0ec
Zephiris 19 سال پیش
والد
کامیت
d4ccec0203
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      Changelog-Trunk.txt
  2. 1 0
      src/char_sql/char.c

+ 1 - 0
Changelog-Trunk.txt

@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/03/03
+	* Fixed character deletion working on SQL without an email address (Thanks to Valaris) [Zephiris]
 	* Added event 8 for mobspawns that should spawn with special ai set. This
 	  means that now in the mob_spawn files if you use 8 as the last entry, the
 	  mob will use the special ai, and as such, it will only attack other mobs,

+ 1 - 0
src/char_sql/char.c

@@ -1860,6 +1860,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)) {
+					memcpy(sd->email, RFIFOP(fd, 6), 40);
 					sd->connect_until_time = (time_t)RFIFOL(fd,46);
 					break;
 					}