From b36751b7970a699f453da471261d258868741281 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 28 Apr 2006 14:36:55 +0000 Subject: - Added function stristr to strlib.c, used by mob.c and item_db.c for case-insensitive seeks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6345 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 6e2bc399f..15386ded0 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -14,6 +14,7 @@ #include "../common/malloc.h" #include "../common/showmsg.h" #include "../common/ers.h" +#include "../common/strlib.h" #include "map.h" #include "clif.h" @@ -84,9 +85,9 @@ static int mobdb_searchname_array_sub(struct mob_db* mob, const char *str) { if (mob == mob_dummy) return 1; //Invalid item. - if(strstr(mob->jname,str)) + if(stristr(mob->jname,str)) return 0; - if(strstr(mob->name,str)) + if(stristr(mob->name,str)) return 0; return strcmpi(mob->jname,str); } -- cgit v1.2.3-70-g09d2