From 08588a14f89cea03f34f6b3e491637cd912603be Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 18 Apr 2024 17:12:21 +0300 Subject: [PATCH] Prevent error when vault guard fails to relocate monster --- src/vault.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vault.c b/src/vault.c index 667b657df..63591948a 100644 --- a/src/vault.c +++ b/src/vault.c @@ -657,7 +657,8 @@ wallify_vault(struct monst *grd) if ((mon = m_at(x, y)) != 0 && mon != grd) { if (mon->mtame) yelp(mon); - (void) rloc(mon, RLOC_ERR); + if (!rloc(mon, RLOC_MSG)) + m_into_limbo(mon); } /* move gold at wall locations into the vault */ if ((gold = g_at(x, y)) != 0) {