From b32bd1059057abfbf5dc01dbfb624e20675246d3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 27 Feb 2006 19:43:19 +0000 Subject: (svn r3681) - [Multistop] Check the RoadStop type before check its status. This fixes an assert introduced in r3663. Also fix the return type of GetRoadStopType(). --- station.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'station.h') diff --git a/station.h b/station.h index 53f6de5e2..54b8a6141 100644 --- a/station.h +++ b/station.h @@ -196,7 +196,7 @@ uint GetStationPlatforms(const Station *st, TileIndex tile); void StationPickerDrawSprite(int x, int y, RailType railtype, int image); RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type); -static inline int GetRoadStopType(TileIndex tile) +static inline RoadStopType GetRoadStopType(TileIndex tile) { return (_m[tile].m5 < 0x47) ? RS_TRUCK : RS_BUS; } -- cgit v1.2.3-54-g00ecf