monster weapon sanity check

In the context of sanity checking, an extra pass though the inventory
of every monster wielding a weapon is completely negligible, but it
is trivial to avoid so take it out.
This commit is contained in:
PatR
2025-06-02 13:20:55 -07:00
parent f385f36c06
commit 1aafd7dfcd
2 changed files with 13 additions and 14 deletions

View File

@@ -233,19 +233,6 @@ sanity_check_single_mon(
mtmp->m_id, distu(mtmp->mx, mtmp->my));
#endif
}
if (MON_WEP(mtmp)) { /* mtmp->mw */
struct obj *o;
for (o = mtmp->minvent; o; o = o->nobj)
if (o == MON_WEP(mtmp))
break;
if (!o) {
o = MON_WEP(mtmp);
impossible("monst (%s: %u) wielding %s (%u) not in inventory",
pmname(mtmp->data, Mgender(mtmp)), mtmp->m_id,
safe_typename(o->otyp), o->o_id);
}
}
}
void