From 662b99b94ea5e8934be006a1365c090b034a22ee Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 10 Jun 2006 03:02:31 +0000 Subject: * Fixed map_readafm missing strcpy(afm_name, m->name). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7080 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/map.c | 2 ++ 2 files changed, 3 insertions(+) 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); -- cgit v1.2.3-70-g09d2