diff --git a/doc/fixes34.1 b/doc/fixes34.1 index bfe1c4118..ad5647b65 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -83,6 +83,7 @@ axes should chop trees; picks shouldn't chance to aim grappling hook when skilled or better level limit of monsters like naga hatchlings should be high enough to grow up scroll of enchant weapon will become discovered when read in some cases +don't crash when using lookat on a boulder an BOULDER sym is unique Platform- and/or Interface-Specific Fixes diff --git a/src/pager.c b/src/pager.c index 4eb86a26f..010788355 100644 --- a/src/pager.c +++ b/src/pager.c @@ -656,8 +656,15 @@ do_look(quick) } /* handle optional boulder symbol as a special case */ - if (iflags.bouldersym && sym == iflags.bouldersym) + if (iflags.bouldersym && sym == iflags.bouldersym) { + if (!found) { + firstmatch = "boulder"; + Sprintf(out_str, "%c %s", sym, an(firstmatch)); + found++; + } else { found += append_str(out_str, "boulder"); + } + } /* * If we are looking at the screen, follow multiple possibilities or