OSDN Git Service

[Fix] #38997 mitokohmon() 内変数参照修正. / Fix variable references in mitokohmon().
authordeskull <deskull@users.sourceforge.jp>
Fri, 3 Jan 2020 14:36:43 +0000 (23:36 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 3 Jan 2020 14:36:43 +0000 (23:36 +0900)
src/spells-summon.c

index 0676d9f..06fa7a4 100644 (file)
@@ -300,7 +300,7 @@ void mitokohmon(player_type *kohmon_ptr)
                        m_ptr = &kohmon_ptr->current_floor_ptr->m_list[i];
                        if (!monster_is_valid(m_ptr)) continue;
                        if (!((m_ptr->r_idx == MON_SUKE) || (m_ptr->r_idx == MON_KAKU))) continue;
-                       if (!los(p_ptr->current_floor_ptr, m_ptr->fy, m_ptr->fx, kohmon_ptr->y, kohmon_ptr->x)) continue;
+                       if (!los(kohmon_ptr->current_floor_ptr, m_ptr->fy, m_ptr->fx, kohmon_ptr->y, kohmon_ptr->x)) continue;
                        if (!projectable(kohmon_ptr->current_floor_ptr, m_ptr->fy, m_ptr->fx, kohmon_ptr->y, kohmon_ptr->x)) continue;
                        count++;
                        break;