diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-04 05:25:25 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-04 05:25:25 +0000 |
commit | 898231042c0ef680d1b21a46df265c8aa90f5881 (patch) | |
tree | 6b8e04e024e3eff95381a788a46148e12ca959ed /src | |
parent | 118420d8744a7a8e01fa428b46aff430264c593f (diff) | |
download | hercules-898231042c0ef680d1b21a46df265c8aa90f5881.tar.gz hercules-898231042c0ef680d1b21a46df265c8aa90f5881.tar.bz2 hercules-898231042c0ef680d1b21a46df265c8aa90f5881.tar.xz hercules-898231042c0ef680d1b21a46df265c8aa90f5881.zip |
Fixed @mi leaking cloned player stats, bugreport:2280
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15386 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index e5d3d6873..d76f1eac6 100644 --- a/src/map/mob.c +++ b/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) |