OSDN Git Service

[Fix] #40051 item_tester_tvalのリセットを追加して呪文学習後のアイテム処理ミスを修正. / Add reset of item_tester_...
authordeskull <deskull@users.sourceforge.jp>
Sun, 8 Mar 2020 12:08:25 +0000 (21:08 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 8 Mar 2020 12:08:25 +0000 (21:08 +0900)
src/cmd/cmd-spell.c

index 5a88587..1b628f3 100644 (file)
@@ -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 */