summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index 84c0bd8e2..4e145fb8f 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -179,7 +179,7 @@ int instance_add_map(const char *name, int instance_id, bool usebasename, const
memcpy( &map[im], &map[m], sizeof(struct map_data) ); // Copy source map
if( map_name != NULL ) {
snprintf(map[im].name, MAP_NAME_LENGTH, "%s", map_name);
- map[im].cName = map[m].name;
+ map[im].custom_name = true;
} else
snprintf(map[im].name, MAP_NAME_LENGTH, (usebasename ? "%.3d#%s" : "%.3d%s"), instance_id, name); // Generate Name for Instance Map
map[im].index = mapindex_addmap(-1, map[im].name); // Add map index