OSDN Git Service

[Refactor] #40514 player_type の resist_cold 変数を廃止. / Abolished the resist_cold variab...
[hengbandforosx/hengbandosx.git] / src / player / player-status-resist.c
index e073e39..a20c047 100644 (file)
@@ -160,7 +160,7 @@ PERCENTAGE calc_cold_damage_rate(player_type *creature_ptr)
         }
     }
 
-    if (creature_ptr->resist_cold)
+    if (has_resist_cold(creature_ptr))
         per = (per + 2) / 3;
     if (is_oppose_cold(creature_ptr))
         per = (per + 2) / 3;