OSDN Git Service

[Fix] #38997 hayagake() 変数参照修正. / Fix variable reference of hayagake().
authordeskull <deskull@users.sourceforge.jp>
Sun, 27 Oct 2019 06:39:02 +0000 (15:39 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 27 Oct 2019 06:39:02 +0000 (15:39 +0900)
src/spells2.c

index 3948ed1..18b97f9 100644 (file)
@@ -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;