more clobber-detection

This commit is contained in:
nhmall
2025-02-02 09:08:48 -05:00
parent bda3437eab
commit d331029b03
3 changed files with 3 additions and 1 deletions

View File

@@ -1080,6 +1080,7 @@ newformer(struct monst *mtmp)
sizeof(struct former_incarnation *));
(void) memset((genericptr_t) FORMER(mtmp), 0,
sizeof(struct former_incarnation *));
FORMER(mtmp)->parentmid = mtmp->m_id;
}
}