OSDN Git Service

1.62の修正で, whoで参照する部分をミスしていたので修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 6 Jun 2003 22:59:06 +0000 (22:59 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 6 Jun 2003 22:59:06 +0000 (22:59 +0000)
src/spells1.c

index 0d98097..f22519f 100644 (file)
@@ -1798,7 +1798,7 @@ static bool project_m(int who, int r, int y, int x, int dam, int typ , int flg)
        int ty = m_ptr->fy;
        int tx = m_ptr->fx;
 
-       int caster_lev = (who > 0) ? (r_info[who].level / 2) : p_ptr->lev;
+       int caster_lev = (who > 0) ? (r_info[m_list[who].r_idx].level / 2) : p_ptr->lev;
 
        /* Nobody here */
        if (!c_ptr->m_idx) return (FALSE);