OSDN Git Service

[Refactor] #40514 player_type の resist_cold 変数を廃止. / Abolished the resist_cold variab...
[hengbandforosx/hengbandosx.git] / src / monster / monster-update.c
index 894502e..04cd139 100644 (file)
@@ -572,7 +572,7 @@ void update_smart_learn(player_type *player_ptr, MONSTER_IDX m_idx, int what)
 
         break;
     case DRS_COLD:
-        if (player_ptr->resist_cold)
+        if (has_resist_cold(player_ptr))
             m_ptr->smart |= SM_RES_COLD;
 
         if (is_oppose_cold(player_ptr))