From b39dbbdfcbfe9bd777f95b33097aa1ca178c480c Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Fri, 3 Apr 2020 22:32:13 -0700 Subject: [PATCH] The change to better handle zapping an unidentified wand in the pack introduced a logic error: the previous value of creature_ptr->update is cached (with additions for changes that may be necessary due to the zapping), its value is then modified but then the cached value is applied to creature_ptr->window rather than creature_ptr->update. This fixes that. --- src/cmd/cmd-zapwand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/cmd-zapwand.c b/src/cmd/cmd-zapwand.c index 2d7000545..2986db35a 100644 --- a/src/cmd/cmd-zapwand.c +++ b/src/cmd/cmd-zapwand.c @@ -431,7 +431,7 @@ void exe_aim_wand(player_type *creature_ptr, INVENTORY_IDX item) } creature_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER); - creature_ptr->window |= inventory_flags; + creature_ptr->update |= inventory_flags; /* Use a single charge */ o_ptr->pval--; -- 2.21.1 (Apple Git-122.3)