Merge branch 'fix-mkobj' of https://github.com/argrath/NetHack into NetHack-3.7

This commit is contained in:
nhmall
2023-11-30 12:16:46 -05:00

View File

@@ -2052,8 +2052,7 @@ save_mtraits(struct obj *obj, struct monst *mtmp)
*mtmp2 = *mtmp;
mtmp2->mextra = (struct mextra *) 0;
if (mtmp->data)
mtmp2->mnum = monsndx(mtmp->data);
mtmp2->mnum = monsndx(mtmp->data);
/* invalidate pointers */
/* m_id is needed to know if this is a revived quest leader */
/* but m_id must be cleared when loading bones */