From ca1b9158f7b256befedd0104f00500b32b704668 Mon Sep 17 00:00:00 2001 From: deskull Date: Mon, 8 Jul 2019 12:40:06 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#38997=20birth=5Fput=5Fstats()=20?= =?utf8?q?=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?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/birth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/birth.c b/src/birth.c index 7416f4e65..060415db1 100644 --- a/src/birth.c +++ b/src/birth.c @@ -1588,7 +1588,7 @@ static void get_money(player_type *creature_ptr) * @details See 'display_player()' for screen layout constraints. * @return なし */ -static void birth_put_stats(void) +static void birth_put_stats(player_type *creature_ptr) { int i, j, m, p; int col; @@ -1606,7 +1606,7 @@ static void birth_put_stats(void) j = rp_ptr->r_adj[i] + cp_ptr->c_adj[i] + ap_ptr->a_adj[i]; /* Obtain the current stat */ - m = adjust_stat(p_ptr->stat_max[i], j); + m = adjust_stat(creature_ptr->stat_max[i], j); /* Put the stat */ cnv_stat(m, buf); @@ -4308,7 +4308,7 @@ static bool player_birth_aux(player_type *creature_ptr) if (flag) { /* Dump data */ - birth_put_stats(); + birth_put_stats(creature_ptr); /* Dump round */ put_str(format("%10ld", auto_round), 10, col+20); -- 2.11.0