Fixed @mi leaking cloned player stats, bugreport:2280

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15386 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-01-04 05:25:25 +00:00
parent b908b6215d
commit dd92932502

View File

@ -123,7 +123,7 @@ int mobdb_searchname_array(struct mob_db** data, int size, const char *str)
struct mob_db* mob;
for(i=0;i<=MAX_MOB_DB;i++){
mob = mob_db(i);
if (mob == mob_dummy)
if (mob == mob_dummy || mob_is_clone(i) ) //keep clones out (or you leak player stats)
continue;
if (!mobdb_searchname_array_sub(mob, str)) {
if (count < size)