1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-31 18:02:26 +01:00

Fix crash on using stethoscope on summoned angels.

This commit is contained in:
NeroOneTrueKing 2021-01-27 16:53:55 -06:00
parent e913d8dbbb
commit b571c0a7a4

View file

@ -507,9 +507,10 @@ register struct monst *mtmp;
aligntyp alignment;
char info[BUFSZ], monnambuf[BUFSZ];
if (mtmp->ispriest || mtmp->mtyp == PM_ALIGNED_PRIEST
|| mtmp->mtyp == PM_ANGEL)
if (get_mx(mtmp, MX_EPRI))
alignment = EPRI(mtmp)->shralign;
else if (get_mx(mtmp, MX_EMIN))
alignment = EMIN(mtmp)->min_align;
else
alignment = mtmp->data->maligntyp;
alignment = (alignment > 0) ? A_LAWFUL :