OSDN Git Service

[Refactor] #38997 apply_disenchant() に player_type * 引数を追加. / Add player_type * argum...
[hengband/hengband.git] / src / combat / melee1.c
index bb328e9..68af2ad 100644 (file)
@@ -2840,7 +2840,7 @@ bool make_attack_normal(player_type *target_ptr, MONSTER_IDX m_idx)
                                        if (!target_ptr->resist_disen && !CHECK_MULTISHADOW(target_ptr))
                                        {
                                                /* Apply disenchantment */
-                                               if (apply_disenchant(0))
+                                               if (apply_disenchant(target_ptr, 0))
                                                {
                                                        /* Hack -- Update AC */
                                                        update_creature(target_ptr);