Fix inadvertent change of strchr to index

Thanks to entrez for pointing this out.
This commit is contained in:
Ray Chason
2022-11-03 19:58:56 -04:00
parent de32aa74c7
commit 14b8350bce

View File

@@ -761,7 +761,7 @@ static const char dknowns[] = { WAND_CLASS, RING_CLASS, POTION_CLASS,
void
clear_dknown(struct obj *obj)
{
obj->dknown = index(dknowns, obj->oclass) ? 0 : 1;
obj->dknown = strchr(dknowns, obj->oclass) ? 0 : 1;
if ((obj->otyp >= ELVEN_SHIELD && obj->otyp <= ORCISH_SHIELD)
|| obj->otyp == SHIELD_OF_REFLECTION
|| objects[obj->otyp].oc_merge)