Browse Source

- Fixed a bug where the char-txt server was incorrectly saving memos, causing character data to be lost on restart.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9209 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 years ago
parent
commit
35b7b85fbd
2 changed files with 3 additions and 1 deletions
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/char/char.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ 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.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 
 2006/11/13
 2006/11/13
+	* Fixed a bug where the char-txt server was incorrectly saving memos,
+	  causing character data to be lost on restart. [Skotlex]
 	* HP Conversion will fail when used at max SP. It should not display any
 	* HP Conversion will fail when used at max SP. It should not display any
 	  errors to the client. [Skotlex]
 	  errors to the client. [Skotlex]
 	* Modified yet again the login procedure to enable character variables to
 	* Modified yet again the login procedure to enable character variables to

+ 1 - 1
src/char/char.c

@@ -451,7 +451,7 @@ int mmo_char_tostr(char *str, struct mmo_charstatus *p, struct global_reg *reg,
 		p->partner_id,p->father,p->mother,p->child,p->fame);
 		p->partner_id,p->father,p->mother,p->child,p->fame);
 	for(i = 0; i < MAX_MEMOPOINTS; i++)
 	for(i = 0; i < MAX_MEMOPOINTS; i++)
 		if (p->memo_point[i].map) {
 		if (p->memo_point[i].map) {
-			str_p += sprintf(str_p, "%d,%d,%d", p->memo_point[i].map, p->memo_point[i].x, p->memo_point[i].y);
+			str_p += sprintf(str_p, "%d,%d,%d ", p->memo_point[i].map, p->memo_point[i].x, p->memo_point[i].y);
 		}
 		}
 	*(str_p++) = '\t';
 	*(str_p++) = '\t';