From 00d78a1b14f524fa7a4aea9322d9f4b5df65a4d1 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 8 May 2013 17:13:31 -0300 Subject: Fixed mapindex_name2id Special Thanks to Wolfed~! <3 Signed-off-by: shennetsind --- src/common/mapindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/mapindex.c b/src/common/mapindex.c index 336368604..4649e299d 100644 --- a/src/common/mapindex.c +++ b/src/common/mapindex.c @@ -121,7 +121,7 @@ unsigned short mapindex_name2id(const char* name) { mapindex_getmapname(name, map_name); - if( (i = strdb_iget(mapindex_db, name)) ) + if( (i = strdb_iget(mapindex_db, map_name)) ) return i; ShowDebug("mapindex_name2id: Map \"%s\" not found in index list!\n", map_name); -- cgit v1.2.3-70-g09d2