From 6ffe986ca934b893c265ff57e62309cc0db03098 Mon Sep 17 00:00:00 2001 From: deskull Date: Sun, 8 Mar 2020 21:08:25 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#40051=20item=5Ftester=5Ftval=E3=81=AE?= =?utf8?q?=E3=83=AA=E3=82=BB=E3=83=83=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= =?utf8?q?=E3=81=97=E3=81=A6=E5=91=AA=E6=96=87=E5=AD=A6=E7=BF=92=E5=BE=8C?= =?utf8?q?=E3=81=AE=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E5=87=A6=E7=90=86?= =?utf8?q?=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3=EF=BC=8E=20/=20Add?= =?utf8?q?=20reset=20of=20item=5Ftester=5Ftval=20in=20do=5Fcmd=5Fstudy()?= =?utf8?q?=20for=20fixing=20selection=20error=20after=20studying=20spells.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd/cmd-spell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/cmd-spell.c b/src/cmd/cmd-spell.c index 5a885877d..1b628f389 100644 --- a/src/cmd/cmd-spell.c +++ b/src/cmd/cmd-spell.c @@ -802,6 +802,8 @@ void do_cmd_study(player_type *caster_ptr) s = _("読める本がない。", "You have no books that you can read."); o_ptr = choose_object(caster_ptr, &item, q, s, (USE_INVEN | USE_FLOOR), item_tester_tval); + + item_tester_tval = NULL; if (!o_ptr) return; /* Access the item's sval */ -- 2.11.0