summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-03 20:35:41 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-03 20:35:41 +0000
commit62e6493dd0016ecbc638fd9f2fa4bfef7ac1870d (patch)
treec9f7992fc600efd538023379e91521d3a9ac21d3 /station_cmd.c
parent894330c93a7793c6f58bd354d8bb37a9f289d913 (diff)
downloadopenttd-62e6493dd0016ecbc638fd9f2fa4bfef7ac1870d.tar.xz
(svn r4719) - Newstations: instead of drawing nothing, fall back to the default sprite layout if a station layout specifies so.
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 491454573..2d205cddc 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1996,7 +1996,7 @@ static void DrawTile_Station(TileInfo *ti)
}
}
- if (t == NULL) t = &_station_display_datas[GetStationGfx(ti->tile)];
+ if (t == NULL || t->seq == NULL) t = &_station_display_datas[GetStationGfx(ti->tile)];
image = t->ground_sprite;
if (image & PALETTE_MODIFIER_COLOR) image |= image_or_modificator;