From b7b85375c53c67a6f9065002ff086175c5908934 Mon Sep 17 00:00:00 2001 From: arromdee Date: Mon, 21 Jan 2002 22:25:04 +0000 Subject: [PATCH] polymorphed quest leader Duuuh. Of course adding objects already changed the editlevel. Anyway, here's the fix I was working on. It only matters in a very obscure situation. (Also, the quest leader still speaks no matter what he's polymorphed into.) --- src/mkobj.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mkobj.c b/src/mkobj.c index b3592618d..041ad5934 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -963,8 +963,9 @@ struct monst *mtmp; if (otmp && otmp->oxlth) { struct monst *mtmp2 = (struct monst *)otmp->oextra; if (mtmp->data) mtmp2->mnum = monsndx(mtmp->data); - /* invalidate pointers and m_id */ - mtmp2->m_id = 0; + /* invalidate pointers */ + /* m_id is needed to know if this is a revived quest leader */ + /* but m_id must be cleared when loading bones */ mtmp2->nmon = (struct monst *)0; mtmp2->data = (struct permonst *)0; mtmp2->minvent = (struct obj *)0;