Explorar o código

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
shennetsind %!s(int64=13) %!d(string=hai) anos
pai
achega
dd92932502
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/mob.c

+ 1 - 1
src/map/mob.c

@@ -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)