summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mapindex.c2
-rw-r--r--src/common/mapindex.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c
index be6580ae5..01489ce93 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -68,7 +68,7 @@ static int mapindex_addmap(int index, const char *name)
return 1;
}
-unsigned short mapindex_name2id(char* name) {
+unsigned short mapindex_name2id(const char* name) {
//TODO: Perhaps use a db to speed this up? [Skotlex]
int i;
int length = strlen(name);
diff --git a/src/common/mapindex.h b/src/common/mapindex.h
index 68989031d..a4aabbc7b 100644
--- a/src/common/mapindex.h
+++ b/src/common/mapindex.h
@@ -37,7 +37,7 @@ extern char mapindex_cfgfile[80];
#define MAP_VEINS "veins.gat"
#define MAP_JAIL "sec_pri.gat"
#define MAP_NOVICE "new_zone01.gat"
-unsigned short mapindex_name2id(char*);
+unsigned short mapindex_name2id(const char*);
const char* mapindex_id2name(unsigned short);
void mapindex_init(void);
void mapindex_final(void);