From: PatR Date: Mon, 11 Sep 2017 23:22:14 +0000 (-0700) Subject: quest artifact followup X-Git-Tag: NetHack-3.6.1_RC01~378 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9846984fd851297ef7c1a0f52c78df8d8fbafc03;p=nethack quest artifact followup 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. --- diff --git a/src/questpgr.c b/src/questpgr.c index 260a43eee..b96edbc3c 100644 --- a/src/questpgr.c +++ b/src/questpgr.c @@ -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)