OSDN Git Service

[Refactor] #38844 pet_t_m_idx, riding_t_m_idx を player_type 構造体に移動.
[hengband/hengband.git] / src / melee1.c
index 6561497..9747a89 100644 (file)
@@ -2306,7 +2306,7 @@ bool py_attack(POSITION y, POSITION x, COMBAT_OPTION_IDX mode)
                }
        }
 
-       riding_t_m_idx = g_ptr->m_idx;
+       p_ptr->riding_t_m_idx = g_ptr->m_idx;
        if (p_ptr->migite) py_attack_aux(y, x, &fear, &mdeath, 0, mode);
        if (p_ptr->hidarite && !mdeath) py_attack_aux(y, x, &fear, &mdeath, 1, mode);