Prevent error when vault guard fails to relocate monster

This commit is contained in:
Pasi Kallinen
2024-04-18 17:12:21 +03:00
parent bb3b9b7271
commit 08588a14f8

View File

@@ -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) {