From e720f7cae53f06857017c8227a3650a27b87840b Mon Sep 17 00:00:00 2001 From: deskull Date: Sun, 27 Oct 2019 15:39:02 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#38997=20hayagake()=20=E5=A4=89=E6=95=B0?= =?utf8?q?=E5=8F=82=E7=85=A7=E4=BF=AE=E6=AD=A3=EF=BC=8E=20/=20Fix=20variab?= =?utf8?q?le=20reference=20of=20hayagake().?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/spells2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spells2.c b/src/spells2.c index 3948ed1f2..18b97f95a 100644 --- a/src/spells2.c +++ b/src/spells2.c @@ -4212,11 +4212,11 @@ void hayagake(player_type *creature_ptr) { if (creature_ptr->action == ACTION_HAYAGAKE) { - set_action(p_ptr, ACTION_NONE); + set_action(creature_ptr, ACTION_NONE); } else { - grid_type *g_ptr = &p_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x]; + grid_type *g_ptr = &creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x]; feature_type *f_ptr = &f_info[g_ptr->feat]; if (!have_flag(f_ptr->flags, FF_PROJECT) || @@ -4226,7 +4226,7 @@ void hayagake(player_type *creature_ptr) } else { - set_action(p_ptr, ACTION_HAYAGAKE); + set_action(creature_ptr, ACTION_HAYAGAKE); } } creature_ptr->energy_use = 0; -- 2.11.0