From 861fd82926e12dc83f5a6ed0a3e1831699d60226 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 9 Feb 2023 08:33:32 +0200 Subject: [PATCH] Fix the part I forgot --- src/mon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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