Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Campbell committed Jun 12, 2016
1 parent 1a04c38 commit 686c50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawl-ref/source/stairs.cc
Expand Up @@ -105,7 +105,7 @@ static bool _marker_vetoes_level_change()
static void _maybe_destroy_shaft(const coord_def &p)
{
trap_def* trap = trap_at(p);
if (trap && get_trap_type(p) == TRAP_SHAFT)
if (trap && trap->type == TRAP_SHAFT)
trap->destroy(true);
}

Expand Down

0 comments on commit 686c50d

Please sign in to comment.