]> granicus.if.org Git - nethack/commitdiff
minor perm_invent fix
authorPatR <rankin@nethack.org>
Thu, 16 Jun 2022 16:42:52 +0000 (09:42 -0700)
committerPatR <rankin@nethack.org>
Thu, 16 Jun 2022 16:42:52 +0000 (09:42 -0700)
src/invent.c

index 04b4dc5d5d46a81ecabc4b63d6b783127e996968..29bcc6a66e516c86120d2b541ba10e70261f2f2e 100644 (file)
@@ -2405,7 +2405,7 @@ learn_unseen_invent(void)
 void
 update_inventory(void)
 {
-    boolean save_suppress_price;
+    int save_suppress_price;
 
     if (suppress_map_output()) /* despite name, used for perm_invent too */
         return;
@@ -2426,7 +2426,7 @@ update_inventory(void)
      * paying for used-up shop items; that follows a different code path.)
      */
     save_suppress_price = iflags.suppress_price;
-    iflags.suppress_price = FALSE;
+    iflags.suppress_price = 0;
 
     (*windowprocs.win_update_inventory)(0);