fixes entry for pull-req #643 - historic statues

monstone() was using a hardcoded value when flagging the statue of
a unique monster as historic and didn't get updated when the corpse
and statue flags kept in obj->spe were changed last June by commit
04a8ddcce1.

Closes #643
This commit is contained in:
PatR
2021-12-17 16:29:53 -08:00
parent 4b20ed6211
commit 420afb6b1f
2 changed files with 4 additions and 0 deletions

View File

@@ -2696,6 +2696,7 @@ monstone(struct monst* mdef)
if ((int) mdef->data->msize > MZ_TINY
|| !rn2(2 + ((int) (mdef->data->geno & G_FREQ) > 2))) {
unsigned corpstatflags = CORPSTAT_NONE;
oldminvent = 0;
/* some objects may end up outside the statue */
while ((obj = mdef->minvent) != 0) {