OSDN Git Service

[Fix] #38997 do_cmd_target() の定義に player_type * 引数を追加. / Add player_type * argument...
authordeskull <deskull@users.sourceforge.jp>
Fri, 3 Jan 2020 14:45:59 +0000 (23:45 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 3 Jan 2020 14:45:59 +0000 (23:45 +0900)
src/cmd/cmd-item.c

index db246e5..574de6c 100644 (file)
@@ -1063,9 +1063,9 @@ void do_cmd_refill(player_type *creature_ptr)
  * Target command
  * @return なし
  */
-void do_cmd_target(void)
+void do_cmd_target(player_type *creature_ptr)
 {
-       if (p_ptr->wild_mode) return;
+       if (creature_ptr->wild_mode) return;
 
        /* Target set */
        if (target_set(TARGET_KILL))