1
0
Fork 0

(svn r24721) -Fix (r24715): Reallow building road stations.

release/1.3
frosch 2012-11-13 21:41:54 +00:00
parent b518f1342c
commit eb56e60e94
1 changed files with 1 additions and 1 deletions

View File

@ -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);