OSDN Git Service

[Fix] #40392 Made decide_initial_stat() passes for-loop
authorHourier <hourier@users.sourceforge.jp>
Tue, 19 May 2020 10:23:51 +0000 (19:23 +0900)
committerHourier <hourier@users.sourceforge.jp>
Tue, 19 May 2020 10:23:51 +0000 (19:23 +0900)
src/birth/birth-wizard.c

index c7fea2f..9b0f107 100644 (file)
@@ -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)