summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/mob.c2
-rw-r--r--src/map/mob.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 5dd636689..c59febd42 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -963,7 +963,7 @@ int mob_spawn (struct mob_data *md)
memset(md->dmglog, 0, sizeof(md->dmglog));
md->tdmg = 0;
if (md->lootitem)
- memset(md->lootitem, 0, sizeof(md->lootitem));
+ memset(&md->lootitem, 0, sizeof(md->lootitem));
md->lootitem_count = 0;
if(md->db->option)
diff --git a/src/map/mob.h b/src/map/mob.h
index 10d16fd4e..4a77a3abb 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -173,7 +173,7 @@ struct mob_data {
* Did this monster summon something?
* Used to flag summon deletions, saves a worth amount of memory
**/
- bool can_summon : 1;
+ bool can_summon;
struct npc_data *tomb_npc;
};