OSDN Git Service

[Fix] #37353 警告を除去 / Removed warnings
authorHourier <hourier@users.sourceforge.jp>
Sat, 8 Feb 2020 16:39:13 +0000 (01:39 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 8 Feb 2020 16:39:16 +0000 (01:39 +0900)
src/spells3.c

index 36edf4a..a3819b9 100644 (file)
@@ -340,7 +340,7 @@ void teleport_player(player_type *creature_ptr, POSITION dis, BIT_FLAGS mode)
                        monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
                        bool is_resistible = (r_ptr->a_ability_flags2 & RF6_TPORT) != 0;
-                       is_resistible &= r_ptr->flagsr & RFR_RES_TELE == 0;
+                       is_resistible &= (r_ptr->flagsr & RFR_RES_TELE) == 0;
                        is_resistible &= MON_CSLEEP(m_ptr) == 0;
                        if (is_resistible)
                        {
@@ -382,7 +382,7 @@ void teleport_player_away(MONSTER_IDX m_idx, player_type *target_ptr, POSITION d
                        monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
                        bool is_resistible = (r_ptr->a_ability_flags2 & RF6_TPORT) != 0;
-                       is_resistible &= r_ptr->flagsr & RFR_RES_TELE == 0;
+                       is_resistible &= (r_ptr->flagsr & RFR_RES_TELE) == 0;
                        is_resistible &= MON_CSLEEP(m_ptr) == 0;
                        if (is_resistible)
                        {