]> granicus.if.org Git - nethack/commitdiff
quest artifact followup
authorPatR <rankin@nethack.org>
Mon, 11 Sep 2017 23:22:14 +0000 (16:22 -0700)
committerPatR <rankin@nethack.org>
Mon, 11 Sep 2017 23:22:14 +0000 (16:22 -0700)
Fix a typo/thinko that ended up being magnified by copy+paste.

I did test having the artifact be carried by a monster, but it was the
nemesis who accompanied me from the level above when I level teleported
back to his lair.  He must have ended up as first monster in fmon chain
when he was placed on the level.

src/questpgr.c

index 260a43eee5b170b65885360704145202ee9239c8..b96edbc3c0c1ffaf05f9e80813746d62bd6b38c0 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 questpgr.c      $NHDT-Date: 1505170344 2017/09/11 22:52:24 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.37 $ */
+/* NetHack 3.6 questpgr.c      $NHDT-Date: 1505172128 2017/09/11 23:22:08 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.38 $ */
 /*      Copyright 1991, M. Stephenson                             */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -229,7 +229,7 @@ unsigned whichchains;
         for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
             if (DEADMONSTER(mtmp))
                 continue;
-            if ((qarti = find_qarti(fmon->minvent)) != 0)
+            if ((qarti = find_qarti(mtmp->minvent)) != 0)
                 break;
         }
     if (!qarti && (whichchains & (1 << OBJ_MIGRATING)) != 0) {
@@ -237,7 +237,7 @@ unsigned whichchains;
         for (mtmp = migrating_mons; mtmp; mtmp = mtmp->nmon) {
             if (DEADMONSTER(mtmp))
                 continue;
-            if ((qarti = find_qarti(fmon->minvent)) != 0)
+            if ((qarti = find_qarti(mtmp->minvent)) != 0)
                 break;
         }
         if (!qarti)