From eb56e60e94902fc9fd6e88da874292ece021351f Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 13 Nov 2012 21:41:54 +0000 Subject: (svn r24721) -Fix (r24715): Reallow building road stations. --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index ae9727c4c..94d03b302 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2863,7 +2863,7 @@ void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, Ro SpriteID img = t->ground.sprite; RailTrackOffset overlay_offset; - if (rti->UsesOverlay() && SplitGroundSpriteForOverlay(NULL, &img, &overlay_offset)) { + if (rti != NULL && rti->UsesOverlay() && SplitGroundSpriteForOverlay(NULL, &img, &overlay_offset)) { SpriteID ground = GetCustomRailSprite(rti, INVALID_TILE, RTSG_GROUND); DrawSprite(img, PAL_NONE, x, y); DrawSprite(ground + overlay_offset, PAL_NONE, x, y); -- cgit v1.2.3-70-g09d2