diff options
-rw-r--r-- | crawl-ref/source/travel.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 3dc2696ae7..7fcb6e3112 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -2627,6 +2627,10 @@ static int _find_transtravel_stair( const level_id &cur, if (_is_excluded( stair, li.get_excludes() )) return (-1); + // Can we even travel to this square? + if (!is_travelsafe_square(target.pos.x, target.pos.y, true)) + return (-1); + // If there's no target position on the target level, or we're on the // target, we're home. if (target.pos.x == -1 || target.pos == stair) |