diff --git a/src/map/mob.c b/src/map/mob.c index 4ed1f38482..154c841dfa 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -984,7 +984,7 @@ int mob_spawn (struct mob_data *md) md->tdmg = 0; if (md->lootitem) - memset(md->lootitem, 0, sizeof(md->lootitem)); + memset(md->lootitem, 0, sizeof(*md->lootitem)); md->lootitem_count = 0;