X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fmelee1.c;h=d8c68887a012d9f152ac7f83614678530b51d275;hb=e0d83041c0a0509daf627b1b2c870d94b9e90231;hp=7b8a8d33ed59b3a828752b14c2d44fd1da111e9d;hpb=7c7c2016442dd6c8f51530cc75774ac33fcd849c;p=hengband%2Fhengband.git diff --git a/src/melee1.c b/src/melee1.c index 7b8a8d33e..d8c68887a 100644 --- a/src/melee1.c +++ b/src/melee1.c @@ -12,6 +12,7 @@ */ #include "angband.h" +#include "cmd-pet.h" /*! @@ -2047,7 +2048,7 @@ bool make_attack_normal(MONSTER_IDX m_idx) if ((p_ptr->counter || (p_ptr->special_defense & KATA_MUSOU)) && alive && !p_ptr->is_dead && m_ptr->ml && (p_ptr->csp > 7)) { char m_target_name[80]; - monster_desc(m_name, m_ptr, 0); + monster_desc(m_target_name, m_ptr, 0); p_ptr->csp -= 7; msg_format(_("%^sに反撃した!", "Your counterattack to %s!"), m_target_name);