OSDN Git Service

[Fix] #38997 do_cmd_eat_food() の変数参照変更忘れを修正.
authordeskull <deskull@users.sourceforge.jp>
Thu, 1 Aug 2019 09:02:34 +0000 (18:02 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 1 Aug 2019 09:02:34 +0000 (18:02 +0900)
src/cmd-eat.c

index b78c7a1..fc95ada 100644 (file)
@@ -510,9 +510,9 @@ void do_cmd_eat_food(player_type *creature_ptr)
        OBJECT_IDX item;
        concptr q, s;
 
-       if (p_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
+       if (creature_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
        {
-               set_action(p_ptr, ACTION_NONE);
+               set_action(creature_ptr, ACTION_NONE);
        }
 
        /* Restrict choices to food */
@@ -524,6 +524,6 @@ void do_cmd_eat_food(player_type *creature_ptr)
        if (!choose_object(&item, q, s, (USE_INVEN | USE_FLOOR), 0)) return;
 
        /* Eat the object */
-       exe_eat_food(p_ptr, item);
+       exe_eat_food(creature_ptr, item);
 }