summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
Diffstat (limited to 'npf.c')
-rw-r--r--npf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/npf.c b/npf.c
index c6d01591a..70e6ed947 100644
--- a/npf.c
+++ b/npf.c
@@ -563,6 +563,8 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
} else {
dst_tile = INVALID_TILE; /* Road vehicle heading inwards: dead end */
}
+ } else {
+ dst_tile = AddTileIndexDiffCWrap(src_tile, TileIndexDiffCByDir(exitdir));
}
} else {
/* This a normal tile, a bridge, a tunnel exit, etc. */