Fix #14586, Fix 069ff846e4: Empty station tile layouts incorrectly substituted with default layouts. (#14587)

It is no longer possible for a layout to be missing, so the nullptr check should have been removed.
This commit is contained in:
Peter Nelson
2025-09-04 22:11:02 +01:00
committed by dP
parent 401853499e
commit 676de198bd

View File

@@ -3323,7 +3323,7 @@ static void DrawTile_Station(TileInfo *ti)
palette = PALETTE_TO_GREY;
}
if (layout == nullptr && (t == nullptr || t->GetSequence().empty())) t = GetStationTileLayout(GetStationType(ti->tile), gfx);
if (layout == nullptr && t == nullptr) t = GetStationTileLayout(GetStationType(ti->tile), gfx);
/* don't show foundation for docks */
if (ti->tileh != SLOPE_FLAT && !IsDock(ti->tile)) {