correct an rng mistake in 6e0d55df from Jan 2019

Reported by entrez
This commit is contained in:
nhmall
2022-08-17 20:32:07 -04:00
parent c05a6f3199
commit d3208fa1c3
3 changed files with 8 additions and 1 deletions

View File

@@ -1332,7 +1332,7 @@ do_oname(struct obj *obj)
/* for "the Foo of Bar", only scuff "Foo of Bar" part */
bufp = !strncmpi(buf, "the ", 4) ? (buf + 4) : buf;
do {
wipeout_text(bufp, rn2_on_display_rng(2), (unsigned) 0);
wipeout_text(bufp, rnd_on_display_rng(2), (unsigned) 0);
} while (!strcmp(buf, bufcpy));
pline("While engraving, your %s slips.", body_part(HAND));
display_nhwindow(WIN_MESSAGE, FALSE);