summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-12 20:17:06 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-12 20:17:06 +0000
commit1502caa60902a913769d4d8d2b1ace9dcb53e718 (patch)
tree2dbc5ab3df661769e8c6f8fd54b55ac5cd2a6804 /src/map/mob.c
parent7c0d97709c232044403d77c6c66d2e792365d5c4 (diff)
downloadhercules-1502caa60902a913769d4d8d2b1ace9dcb53e718.tar.gz
hercules-1502caa60902a913769d4d8d2b1ace9dcb53e718.tar.bz2
hercules-1502caa60902a913769d4d8d2b1ace9dcb53e718.tar.xz
hercules-1502caa60902a913769d4d8d2b1ace9dcb53e718.zip
Fixed bugreport:6223 so this happened to be indented eh, whops.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16419 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 12ceae907..1a8f72a6f 100644
--- a/src/map/mob.c
+++ b/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)