OSDN Git Service

#37287 (2.2.0.89) C4701警告に対応。 / Fix C4701 warning.
authorDeskull <desull@users.sourceforge.jp>
Thu, 7 Dec 2017 23:38:11 +0000 (08:38 +0900)
committerDeskull <desull@users.sourceforge.jp>
Thu, 7 Dec 2017 23:38:11 +0000 (08:38 +0900)
src/load.c
src/mspells1.c
src/wild.c

index fd000ba..ce49f23 100644 (file)
@@ -926,6 +926,7 @@ static void rd_monster_old(monster_type *m_ptr)
        if (z_older_than(10, 4, 5))
                m_ptr->exp = 0;
        else
+               tmp32u = 0;
                rd_u32b(&tmp32u);
                m_ptr->exp = tmp32u;
 
index 80f62e9..246348d 100644 (file)
@@ -542,7 +542,7 @@ void bolt(MONSTER_IDX m_idx, int y, int x, int typ, int dam_hp, int monspell, in
  */
 void beam(MONSTER_IDX m_idx, int y, int x, int typ, int dam_hp, int monspell, int target_type)
 {
-    int flg;
+    int flg = 0;
     bool learnable = spell_learnable(m_idx);
 
     switch (target_type)
index 59561c7..09a3d84 100644 (file)
@@ -43,7 +43,7 @@ static void set_floor_and_wall_aux(s16b feat_type[100], feat_prob prob[DUNGEON_F
  */
 void set_floor_and_wall(DUNGEON_IDX type)
 {
-       static byte cur_type = 255;
+       DUNGEON_IDX cur_type = 255;
        dungeon_info_type *d_ptr;
 
        /* Already filled */