summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
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);