summaryrefslogtreecommitdiff
path: root/src/pathfind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r--src/pathfind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp
index 6fc452647..955394603 100644
--- a/src/pathfind.cpp
+++ b/src/pathfind.cpp
@@ -910,7 +910,7 @@ start_at:
continue; /* We overflowed our depth. No more searching in this direction. */
si.tile = tile;
while (bits != TRACK_BIT_NONE) {
- Track track = RemoveFirstTrack(bits);
+ Track track = RemoveFirstTrack(&bits);
si.track = _new_trackdir[track][direction];
assert(si.track != 0xFF);
si.priority = si.cur_length + estimation;