OSDN Git Service

[Refactor] #38993 floor_type 構造体作成。 / Create floor_type structure.
[hengband/hengband.git] / src / mutation.c
index 9e17252..51b72e8 100644 (file)
@@ -2287,7 +2287,7 @@ bool mutation_power_aux(int power)
                                if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
                                y = p_ptr->y + ddy[dir];
                                x = p_ptr->x + ddx[dir];
-                               g_ptr = &grid_array[y][x];
+                               g_ptr = &current_floor->grid_array[y][x];
 
                                if (!g_ptr->m_idx)
                                {
@@ -2332,7 +2332,7 @@ bool mutation_power_aux(int power)
                                if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
                                y = p_ptr->y + ddy[dir];
                                x = p_ptr->x + ddx[dir];
-                               g_ptr = &grid_array[y][x];
+                               g_ptr = &current_floor->grid_array[y][x];
                                if (!g_ptr->m_idx)
                                {
                                        msg_print(_("あなたは何もない場所で手を振った。", "You wave your hands in the air."));