]> granicus.if.org Git - nethack/commitdiff
follow-up
authornhmall <nhmall@nethack.org>
Fri, 24 Jun 2022 19:22:38 +0000 (15:22 -0400)
committernhmall <nhmall@nethack.org>
Fri, 24 Jun 2022 19:22:38 +0000 (15:22 -0400)
src/invent.c

index 44090afe01169d397735ab473c5a2ffe2f2295ff..236f1ea0ad4dc140ac653d463164d09d7f19890c 100644 (file)
@@ -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) {