Browse Source

another set of minor adjustments throughout the code.

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

+ 1 - 1
src/map/mob.c

@@ -963,7 +963,7 @@ int mob_spawn (struct mob_data *md)
 	memset(md->dmglog, 0, sizeof(md->dmglog));
 	memset(md->dmglog, 0, sizeof(md->dmglog));
 	md->tdmg = 0;
 	md->tdmg = 0;
 	if (md->lootitem)
 	if (md->lootitem)
-		memset(md->lootitem, 0, sizeof(md->lootitem));
+		memset(&md->lootitem, 0, sizeof(md->lootitem));
 	md->lootitem_count = 0;
 	md->lootitem_count = 0;
 
 
 	if(md->db->option)
 	if(md->db->option)

+ 1 - 1
src/map/mob.h

@@ -173,7 +173,7 @@ struct mob_data {
 	 * Did this monster summon something?
 	 * Did this monster summon something?
 	 * Used to flag summon deletions, saves a worth amount of memory
 	 * Used to flag summon deletions, saves a worth amount of memory
 	 **/
 	 **/
-	bool can_summon : 1;
+	bool can_summon;
 
 
 	struct npc_data *tomb_npc;
 	struct npc_data *tomb_npc;
 };
 };