diff options
author | shennetsind <ind@henn.et> | 2015-01-18 11:38:08 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2015-01-18 11:38:08 -0200 |
commit | df961e808a5256031ad3697650ab5f4ba5ddbe16 (patch) | |
tree | ac36ce4c2a2845d78a68e9bf12c49e6f61eb0e39 /src/common | |
parent | d0725afa8363b5f7b0612e087b48013d39339039 (diff) | |
parent | 9638e8e3730baea5b28670f8d38dbd417777c976 (diff) | |
download | hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.tar.gz hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.tar.bz2 hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.tar.xz hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.zip |
Merge branch 'master' of github.com:HerculesWS/Hercules
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/mapindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c index 2264721fa..035518f68 100644 --- a/src/common/mapindex.c +++ b/src/common/mapindex.c @@ -126,7 +126,7 @@ unsigned short mapindex_name2id(const char* name) { } const char* mapindex_id2name_sub(unsigned short id,const char *file, int line, const char *func) { - if (id > MAX_MAPINDEX || !mapindex_exists(id)) { + if (id >= MAX_MAPINDEX || !mapindex_exists(id)) { ShowDebug("mapindex_id2name: Requested name for non-existant map index [%d] in cache. %s:%s:%d\n", id,file,func,line); return mapindex->list[0].name; // dummy empty string so that the callee doesn't crash } |