OSDN Git Service

[Fix] #40301 本を読んだ後のitem_tester_tval, item_tester_hookの解消抜けを修正. / Fixed the missing...
authordeskull <deskull@users.sourceforge.jp>
Tue, 28 Apr 2020 16:31:34 +0000 (01:31 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 28 Apr 2020 16:31:34 +0000 (01:31 +0900)
src/cmd/cmd-spell.c

index c1f20b8..343fc43 100644 (file)
@@ -627,6 +627,9 @@ void do_cmd_browse(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 | (caster_ptr->pclass == CLASS_FORCETRAINER ? USE_FORCE : 0)), item_tester_tval);
+
+       item_tester_tval = 0;
+       item_tester_hook = NULL;
        if (!o_ptr)
        {
                if (item == INVEN_FORCE) /* the_force */