summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 05:25:25 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 05:25:25 +0000
commit898231042c0ef680d1b21a46df265c8aa90f5881 (patch)
tree6b8e04e024e3eff95381a788a46148e12ca959ed /src/map/mob.c
parent118420d8744a7a8e01fa428b46aff430264c593f (diff)
downloadhercules-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/map/mob.c')
-rw-r--r--src/map/mob.c2
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)