diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 5e960b4fa..bdd6d6bb4 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -74,8 +74,7 @@ int mobdb_searchname(const char *str) mob = mob_db(i);
if(mob == mob_dummy) //Skip dummy mobs.
continue;
- if(strcmpi(mob->name,str)==0 || strcmpi(mob->jname,str)==0 ||
- memcmp(mob->name,str,NAME_LENGTH)==0 || memcmp(mob->jname,str,NAME_LENGTH)==0)
+ if(strcmpi(mob->name,str)==0 || strcmpi(mob->jname,str)==0 || strcmpi(mob->sprite,str)==0)
return i;
}
|