]> granicus.if.org Git - nethack/commit
fix #H8271 - wearing armor vs perm_invent window
authorPatR <rankin@nethack.org>
Mon, 25 Feb 2019 23:33:43 +0000 (15:33 -0800)
committerPatR <rankin@nethack.org>
Mon, 25 Feb 2019 23:33:43 +0000 (15:33 -0800)
commit2b2106743ed2d661d63ee6d98f9ff0ba8f57408a
tree149b6aeedff7edb060642997545dcbbc481079a3
parent587a51bee772445eda9c666442a82bdbfd389ecf
fix #H8271 - wearing armor vs perm_invent window

A relatively recent change moved 'obj->known = 1' when wearing armor
from before setworn(), which issues an update_inventory() call, to
afterwards.  There wasn't any particular update then, so observing
the enchantment of armor by wearing it wasn't being reflected in the
persistent inventory window if that was enabled.
doc/fixes36.2
src/hack.c