summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/char_sql/char.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index b10ac723e..f0e3588b8 100644
--- a/Changelog-Trunk.txt
+++ b/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.
2006/05/26
+ * Fixed typos in char.c [Lance]
* Rewrote fame rank lists system to reduce char-server load, as requested by
Skotlex: now it has a copy of those lists, and updates only the proper one
when needed instead of rebuilding all from saves everytime (which required
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 48b7a064c..ed76012d1 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2784,8 +2784,8 @@ int parse_frommap(int fd) {
list[i].id = id;
list[i].fame = fame;
for(j = 0; j < char_num; j++) // Look for the player's name
- if(char_dat[j].status.char_id == id) {
- strncpy(list[j].name, char_dat[j].status.name, NAME_LENGTH);
+ if(char_dat[j].char_id == id) {
+ strncpy(list[j].name, char_dat[j].name, NAME_LENGTH);
break;
}
break;