diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 5 |
1 files changed, 3 insertions, 2 deletions
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);
}
|