From 63804beb3d4d22360e397057ad13a8ac89feaa24 Mon Sep 17 00:00:00 2001 From: deskull Date: Tue, 17 Dec 2019 01:34:20 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#38997=20wiz=5Fcreate=5Fnamed=5Fart?= =?utf8?q?()=20=E3=81=AB=20player=5Ftype=20*=20=E5=BC=95=E6=95=B0=E3=82=92?= =?utf8?q?=E8=BF=BD=E5=8A=A0=EF=BC=8E=20/=20Add=20player=5Ftype=20*=20argu?= =?utf8?q?ment=20to=20wiz=5Fcreate=5Fnamed=5Fart().?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/wizard2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wizard2.c b/src/wizard2.c index bc0481be3..45370c4ad 100644 --- a/src/wizard2.c +++ b/src/wizard2.c @@ -162,7 +162,7 @@ static bool wiz_dimension_door(void) * @brief 指定されたIDの固定アーティファクトを生成する / Create the artifact of the specified number * @return なし */ -static void wiz_create_named_art(void) +static void wiz_create_named_art(player_type *caster_ptr) { char tmp_val[10] = ""; ARTIFACT_IDX a_idx; @@ -175,7 +175,7 @@ static void wiz_create_named_art(void) if(a_idx < 0) a_idx = 0; if(a_idx >= max_a_idx) a_idx = 0; - (void)create_named_art(a_idx, p_ptr->y, p_ptr->x); + (void)create_named_art(a_idx, caster_ptr->y, caster_ptr->x); /* All done */ msg_print("Allocated."); @@ -1810,7 +1810,7 @@ void do_cmd_debug(player_type *creature_ptr) /* Create a named artifact */ case 'C': - wiz_create_named_art(); + wiz_create_named_art(creature_ptr); break; /* Detect everything */ -- 2.11.0