From: Pasi Kallinen Date: Thu, 9 Feb 2023 06:33:32 +0000 (+0200) Subject: Fix the part I forgot X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=861fd82926e12dc83f5a6ed0a3e1831699d60226;p=nethack Fix the part I forgot --- diff --git a/src/mon.c b/src/mon.c index fa6d3581a..5375769f3 100644 --- a/src/mon.c +++ b/src/mon.c @@ -4133,7 +4133,7 @@ maybe_unhide_at(coordxy x, coordxy y) if ((mtmp = m_at(x, y)) == 0 && u_at(x, y)) { mtmp = &gy.youmonst; undetected = u.uundetected; - } else { + } else if (mtmp) { undetected = mtmp->mundetected; } if (mtmp && undetected