pull request 1156 follow-up bit

This commit is contained in:
nhmall
2023-11-30 12:19:16 -05:00
parent 182d7d27b8
commit a6772da65d

View File

@@ -2047,7 +2047,7 @@ save_mtraits(struct obj *obj, struct monst *mtmp)
if (!has_omonst(obj))
newomonst(obj);
if (has_omonst(obj)) {
int baselevel = mtmp->data->mlevel;
int baselevel = mtmp->data->mlevel; /* mtmp->data is valid ptr */
struct monst *mtmp2 = OMONST(obj);
*mtmp2 = *mtmp;