From 08720b6fd7c8cf345debbf1278698328e268d88e Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 3 Mar 2006 20:54:54 +0000 Subject: (svn r3750) Use INVALID_STATION instead of -1 in NPF --- roadveh_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roadveh_cmd.c') 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; } -- cgit v1.2.3-54-g00ecf