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)
{
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)
{