follow-up: just use existing carrying()

This commit is contained in:
nhmall
2025-12-09 15:25:10 -05:00
parent 6ba053669e
commit 7dc4512bb3
3 changed files with 1 additions and 14 deletions

View File

@@ -671,7 +671,7 @@ docall(struct obj *obj)
*uname_p = dupstr(buf);
discover_object(obj->otyp, FALSE, TRUE, TRUE); /* possibly add to disco[] */
}
if (obj->where == OBJ_INVENT || hero_has_one_of_these(obj->otyp))
if (obj->where == OBJ_INVENT || carrying(obj->otyp))
update_inventory();
}