OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff3cb26
)
[Fix] #40392 Made decide_initial_stat() passes for-loop
author
Hourier
<hourier@users.sourceforge.jp>
Tue, 19 May 2020 10:23:51 +0000
(19:23 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Tue, 19 May 2020 10:23:51 +0000
(19:23 +0900)
src/birth/birth-wizard.c
patch
|
blob
|
history
diff --git
a/src/birth/birth-wizard.c
b/src/birth/birth-wizard.c
index
c7fea2f
..
9b0f107
100644
(file)
--- a/
src/birth/birth-wizard.c
+++ b/
src/birth/birth-wizard.c
@@
-168,14
+168,15
@@
static bool decide_initial_stat(player_type *creature_ptr)
if (!autoroller)
return TRUE;
+ bool accept = TRUE;
for (int i = 0; i < A_MAX; i++) {
if (creature_ptr->stat_max[i] >= stat_limit[i])
stat_match[i]++;
else
-
return
FALSE;
+
accept =
FALSE;
}
- return
TRUE
;
+ return
accept
;
}
static bool decide_body_spec(player_type *creature_ptr, chara_limit_type chara_limit, bool *accept)