Browse Source

Fixed bugreport:6223 so this happened to be indented eh, whops.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16419 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
82574fecfe
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/map/mob.c

+ 4 - 4
src/map/mob.c

@@ -962,10 +962,10 @@ int mob_spawn (struct mob_data *md)
 
 	memset(md->dmglog, 0, sizeof(md->dmglog));
 	md->tdmg = 0;
-	if (md->lootitem) {
-		aFree(md->lootitem);
-		md->lootitem = NULL;
-	}
+	
+	if (md->lootitem)
+		memset(md->lootitem, 0, sizeof(md->lootitem));
+	
 	md->lootitem_count = 0;
 
 	if(md->db->option)