diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-11 20:34:16 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-11 20:34:16 +0000 |
commit | b1075ca7a43ea39cddf4ec4406f99bb5aa37a113 (patch) | |
tree | 0cfaa224bb5153de119f9d01928afb07925e0481 /rail_cmd.c | |
parent | 1c867927a3a8b8c26e1758bbd1f367a4f684e084 (diff) | |
download | openttd-b1075ca7a43ea39cddf4ec4406f99bb5aa37a113.tar.xz |
(svn r3166) Constify read-only accesses of custom stations
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index c6e49a8fc..1faeaa720 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1518,12 +1518,12 @@ static void DrawTile_Track(TileInfo *ti) if (IsRailWaypoint(m5) && HASBIT(_m[ti->tile].m3, 4)) { // look for customization - StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _m[ti->tile].m4); + const StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _m[ti->tile].m4); - if (stat) { + if (stat != NULL) { DrawTileSeqStruct const *seq; // emulate station tile - open with building - DrawTileSprites *cust = &stat->renderdata[2 + (m5 & 0x1)]; + const DrawTileSprites *cust = &stat->renderdata[2 + (m5 & 0x1)]; uint32 relocation = GetCustomStationRelocation(stat, ComposeWaypointStation(ti->tile), 0); /* We don't touch the 0x8000 bit. In all this |