diff options
author | tron <tron@openttd.org> | 2006-03-03 20:54:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-03 20:54:54 +0000 |
commit | 08720b6fd7c8cf345debbf1278698328e268d88e (patch) | |
tree | 95d8716647b3513c1c50be1fa871ca8b086db30f /roadveh_cmd.c | |
parent | 4ebaa55fe112233cf806cd079a779199f09b9128 (diff) | |
download | openttd-08720b6fd7c8cf345debbf1278698328e268d88e.tar.xz |
(svn r3750) Use INVALID_STATION instead of -1 in NPF
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index ef0eb3eec..e4b5ae6eb 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -1111,7 +1111,7 @@ static uint RoadFindPathToStop(const Vehicle *v, TileIndex tile) assert(trackdir != 0xFF); fstd.dest_coords = tile; - fstd.station_index = -1; // indicates that the destination is a tile, not a station + fstd.station_index = INVALID_STAION; // indicates that the destination is a tile, not a station return NPFRouteToStationOrTile(v->tile, trackdir, &fstd, TRANSPORT_ROAD, v->owner, INVALID_RAILTYPE).best_path_dist; } |