diff options
author | KUDr <KUDr@openttd.org> | 2007-01-11 10:34:42 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-01-11 10:34:42 +0000 |
commit | 8553b0dad5d9bc71835270dd098061a392f2ee93 (patch) | |
tree | ec4aeac562589ab6f2c903d683ecb3834ea9003d /src/pathfind.cpp | |
parent | b71fa18db3aff54518e7900b80a73f58352676d5 (diff) | |
download | openttd-8553b0dad5d9bc71835270dd098061a392f2ee93.tar.xz |
(svn r8052) - Codechange: RemoveFirstTrack() and RemoveFirstTrackdir() now accept pointer to TrackBits/TrackdirBits instead of reference.
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r-- | src/pathfind.cpp | 2 |
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; |