From: nhmall Date: Fri, 24 Jun 2022 19:22:38 +0000 (-0400) Subject: follow-up X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c504a211222e46b4b77a4603fa8123d48eae24b3;p=nethack follow-up --- diff --git a/src/invent.c b/src/invent.c index 44090afe0..236f1ea0a 100644 --- a/src/invent.c +++ b/src/invent.c @@ -5359,7 +5359,8 @@ core_update_invent_slot() const char *wport_id; struct obj *obj; - if (g.perm_invent_win == WIN_ERR && g.core_invent_state) + if ((g.perm_invent_win == WIN_ERR && g.core_invent_state) + || (pi_info.tocore.tocore_flags & prohibited)) return; if (!iflags.perm_invent && g.core_invent_state) {