diff options
author | shennetsind <ind@henn.et> | 2013-12-02 13:18:39 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-02 13:18:39 -0200 |
commit | 95581cedd9a89d8eac918bdc77c1a98e017abc46 (patch) | |
tree | 2dec92f4a0a9913de607741bd7d7224d8241409c /src/map/mob.c | |
parent | e46ca28bddd673f8217456297f596e0fe3c67609 (diff) | |
parent | 9f210e13ce08340fc4920311518187e8a03a636f (diff) | |
download | hercules-95581cedd9a89d8eac918bdc77c1a98e017abc46.tar.gz hercules-95581cedd9a89d8eac918bdc77c1a98e017abc46.tar.bz2 hercules-95581cedd9a89d8eac918bdc77c1a98e017abc46.tar.xz hercules-95581cedd9a89d8eac918bdc77c1a98e017abc46.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 16c33b552..92fa98885 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -95,7 +95,7 @@ int mobdb_searchname(const char *str) monster = mob->db(i); if(monster == mob->dummy) //Skip dummy mobs. continue; - if(strcmpi(monster->name,str)==0 || strcmpi(monster->jname,str)==0 || strcmpi(monster->sprite,str)==0) + if(strcmpi(monster->name,str)==0 || strcmpi(monster->jname,str)==0 || strcmp(monster->sprite,str)==0) // Sprite name case sensitive return i; } @@ -113,9 +113,9 @@ int mobdb_searchname_array_sub(struct mob_db* monster, const char *str, int flag return 0; return strcmpi(monster->jname,str); } - if(strcmp(monster->jname,str) == 0) + if(strcmpi(monster->jname,str) == 0) return 0; - if(strcmp(monster->name,str) == 0) + if(strcmpi(monster->name,str) == 0) return 0; return strcmp(monster->sprite,str); } |