An off-by-one error when accessing the trapexplain array at line 347 of libnitrohack/src/pray.c causes far-look to report e.g. "a dwarf trapped in a statue trap" when it's trapped in a web.
This line:
sprintf(eos(buf), ", trapped in %s", an(trapexplain[tt]));
... should look like this, like all other uses of trapexplain in the code:
sprintf(eos(buf), ", trapped in %s", an(trapexplain[tt-1]));
See this with context in this commit on my experimental branch.
An off-by-one error when accessing the
trapexplain
array at line 347 of libnitrohack/src/pray.c causes far-look to report e.g. "a dwarf trapped in a statue trap" when it's trapped in a web.This line:
... should look like this, like all other uses of
trapexplain
in the code:See this with context in this commit on my experimental branch.