comment follow-up

This commit is contained in:
nhmall
2023-12-27 10:44:50 -05:00
parent 6d8c37b754
commit 80afc96def

View File

@@ -1488,7 +1488,9 @@ do_oname(struct obj *obj)
a valid artifact name */
u.uconduct.literate++;
} else if (obj->otyp == objtyp) {
/* artifact_name() always returns non-Null when it sets objtyp */
assert(aname != 0);
/* artifact_name() found a match and restrict_name() didn't reject
it; since 'obj' is the right type, naming will change it into an
artifact so use canonical capitalization (Sting or Orcrist) */