]> granicus.if.org Git - nethack/commitdiff
don't alter perm_invent during fuzzer
authornhmall <nhmall@nethack.org>
Fri, 1 Jul 2022 12:36:33 +0000 (08:36 -0400)
committernhmall <nhmall@nethack.org>
Fri, 1 Jul 2022 12:36:33 +0000 (08:36 -0400)
src/options.c

index 42da3e5242cff9b1ef07b17d6af1bc8370f72193..1acff8f3f56eeb04d017515808597490bdce9aa6 100644 (file)
@@ -4378,7 +4378,8 @@ optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op)
         }
         if (iflags.debug_fuzzer && !g.opt_initial) {
             /* don't randomly toggle this/these */
-            if (optidx == opt_silent)
+            if ((optidx == opt_silent)
+                || (optidx == opt_perm_invent))
                 return optn_ok;
         }
         /* Before the change */