From 9846984fd851297ef7c1a0f52c78df8d8fbafc03 Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 11 Sep 2017 16:22:14 -0700 Subject: [PATCH] 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. --- src/questpgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.40.0