OSDN Git Service

[fix] #12 do_cmd_options_auxの引数をgame_option_typesにする
authorHabu <habu1010+github@gmail.com>
Mon, 8 Feb 2021 14:32:18 +0000 (23:32 +0900)
committerHabu <habu1010+github@gmail.com>
Tue, 9 Feb 2021 11:05:30 +0000 (20:05 +0900)
do_cmd_options_auxの第2引数はOPT_PAGE_*を受け取るので、
int型ではなくgame_option_types型とすべき。

src/cmd-io/cmd-gameoption.c
src/cmd-io/cmd-gameoption.h

index 7b08dde..40cdc40 100644 (file)
@@ -608,7 +608,7 @@ void do_cmd_options(player_type *player_ptr)
  * @param info 表示メッセージ
  * @return なし
  */
-void do_cmd_options_aux(player_type *player_ptr, int page, concptr info)
+void do_cmd_options_aux(player_type *player_ptr, game_option_types page, concptr info)
 {
     char ch;
     int i, k = 0, n = 0, l;
index f810537..5b9a858 100644 (file)
@@ -1,7 +1,8 @@
 #pragma once
 
 #include "system/angband.h"
+#include "system/game-option-types.h"
 
 void extract_option_vars(void);
-void do_cmd_options_aux(player_type *player_ptr, int page, concptr info);
+void do_cmd_options_aux(player_type *player_ptr, game_option_types page, concptr info);
 void do_cmd_options(player_type *player_ptr);