From c2a0d89acae0c0601b41df569b5be9ed59289afe Mon Sep 17 00:00:00 2001 From: deskull Date: Sat, 4 Jan 2020 00:04:05 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#38997=20cmd-eat.c=20=E5=86=85=E5=A4=89?= =?utf8?q?=E6=95=B0=E5=8F=82=E7=85=A7=E4=BF=AE=E6=AD=A3=EF=BC=8E=20/=20Fix?= =?utf8?q?=20variable=20references=20in=20cmd-eat.c.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd/cmd-eat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/cmd-eat.c b/src/cmd/cmd-eat.c index dff398e8a..6679ca087 100644 --- a/src/cmd/cmd-eat.c +++ b/src/cmd/cmd-eat.c @@ -39,7 +39,7 @@ void exe_eat_food(player_type *creature_ptr, INVENTORY_IDX item) if (music_singing_any(creature_ptr)) stop_singing(creature_ptr); if (hex_spelling_any(creature_ptr)) stop_hex_spell_all(creature_ptr); - o_ptr = REF_ITEM(creature_ptr, p_ptr->current_floor_ptr, item); + o_ptr = REF_ITEM(creature_ptr, creature_ptr->current_floor_ptr, item); sound(SOUND_EAT); @@ -486,7 +486,7 @@ void do_cmd_eat_food(player_type *creature_ptr) q = _("どれを食べますか? ", "Eat which item? "); s = _("食べ物がない。", "You have nothing to eat."); - if (!choose_object(p_ptr, &item, q, s, (USE_INVEN | USE_FLOOR), 0)) return; + if (!choose_object(creature_ptr, &item, q, s, (USE_INVEN | USE_FLOOR), 0)) return; exe_eat_food(creature_ptr, item); } -- 2.11.0