summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/map.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index e720240d1..0a5cd1b5c 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/06/09
+ * Fixed map_readafm missing strcpy(afm_name, m->name). [Skotlex]
* [Improved]:
- npc_click interception on BL_MOB and BL_PC to let sd act accordingly.
[Lance]
diff --git a/src/map/map.c b/src/map/map.c
index 28bdd5148..ef137b965 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2838,6 +2838,8 @@ int map_readafm (struct map_data *m)
// check if it's necessary to replace the extension - speeds up loading a bit
strncpy(afm_name, m->name, strlen(m->name) - 4);
strcat(afm_name, ".afm");
+ } else {
+ strcpy(afm_name, m->name);
}
sprintf(fn, "%s\\%s", afm_dir, afm_name);