Fix bz51: Revived unique inherits corpse name

This commit is contained in:
Pasi Kallinen
2016-01-15 22:02:41 +02:00
parent 8efec0a547
commit 9b4d52397c
2 changed files with 2 additions and 2 deletions

View File

@@ -831,7 +831,7 @@ boolean by_hero;
}
/* monster retains its name */
if (has_oname(corpse))
if (has_oname(corpse) && !unique_corpstat(mtmp->data))
mtmp = christen_monst(mtmp, ONAME(corpse));
/* partially eaten corpse yields wounded monster */
if (corpse->oeaten)