diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 6f5fc6433..de88d0c09 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -219,6 +219,7 @@ create_object() created lizard corpses without timers and troll corpses with their revive timers, then changed the corpsenm field when a potion of acid was dropped into water and exploded, nethack would continue to use already freed memory and later might panic or crash +when jumping over an already seen trap, use an() to get appropriate grammar Platform- and/or Interface-Specific Fixes diff --git a/src/dothrow.c b/src/dothrow.c index 489bfbe3a..15e30d24a 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -561,9 +561,8 @@ hurtle_step(arg, x, y) return TRUE; } else { if (ttmp->tseen) - You("pass right over %s %s.", - (ttmp->ttyp == ARROW_TRAP) ? "an" : "a", - defsyms[trap_to_defsym(ttmp->ttyp)].explanation); + You("pass right over %s.", + an(defsyms[trap_to_defsym(ttmp->ttyp)].explanation)); } } if (--*range < 0) /* make sure our range never goes negative */