final disclosure of inventory vs force_invmenu

It seems surpristing that no one has noticed this since the code that
is responsible has been present for six months.  Inventory list at
end of game included bogus "? - (list likely candidates)".
This commit is contained in:
PatR
2025-04-20 19:36:56 -07:00
parent ec5fe78b64
commit 1c679779f4
2 changed files with 3 additions and 0 deletions

View File

@@ -630,6 +630,7 @@ disclose(int how, boolean taken)
if (c == 'y') {
/* caller has already ID'd everything; we pass 'want_reply=True'
to force display_pickinv() to avoid using WIN_INVENT */
iflags.force_invmenu = FALSE;
(void) display_inventory((char *) 0, TRUE);
container_contents(gi.invent, TRUE, TRUE, FALSE);
}