static analyzer bit for priest.c

src/priest.c(865): warning: Dereferencing NULL pointer '((priest))->mextra->emin'.
This commit is contained in:
nhmall
2023-12-27 11:02:09 -05:00
parent 11c2586bdb
commit e9ced6e2f9

View File

@@ -862,6 +862,7 @@ angry_priest(void)
newemin(priest);
priest->ispriest = 0; /* now a roaming minion */
priest->isminion = 1;
assert(has_emin(priest));
EMIN(priest)->min_align = eprip->shralign;
EMIN(priest)->renegade = FALSE;
/* discard priest's memory of his former shrine;