OSDN Git Service

[Fix] #40051 どうして非ポインタに NULL 使う必要があるのか(憤怒) / Fix NULL use to non-pointer variable.
authordeskull <deskull@users.sourceforge.jp>
Sun, 8 Mar 2020 13:32:06 +0000 (22:32 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 8 Mar 2020 13:32:06 +0000 (22:32 +0900)
src/cmd/cmd-spell.c

index 1b628f3..c8f93c1 100644 (file)
@@ -803,7 +803,7 @@ void do_cmd_study(player_type *caster_ptr)
 
        o_ptr = choose_object(caster_ptr, &item, q, s, (USE_INVEN | USE_FLOOR), item_tester_tval);
 
-       item_tester_tval = NULL;
+       item_tester_tval = 0;
        if (!o_ptr) return;
 
        /* Access the item's sval */