Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.
This repository was archived by the owner on May 27, 2021. It is now read-only.

Monster in web trap described as "trapped in a statue trap" in far-look #29

Description

@tung

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions