diff options
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 107b5bc17..f88267841 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1336,7 +1336,12 @@ static void DrawTile_Track(TileInfo *ti) if (callback != CALLBACK_FAILED) tile = callback; } - cust = &statspec->renderdata[(tile < statspec->tiles ? tile : 0) + GetWaypointAxis(ti->tile)]; + if (statspec->renderdata == NULL) { + cust = GetStationTileLayout(tile); + relocation -= 0x42D; + } else { + cust = &statspec->renderdata[(tile < statspec->tiles ? tile : 0) + GetWaypointAxis(ti->tile)]; + } /* If there is no sprite layout, we fall back to the default waypoint graphics. */ if (cust != NULL && cust->seq != NULL) { |