# HG changeset patch # User frosch # Date 2010-01-23 16:38:09 # Node ID a4aaeb37e5be7fd140c7d8bbe5ba0cb014f9304d # Parent d34c7f3b5e486238c1ca9197dd044dbf81dec6f7 (svn r18897) -Fix: Land area information read the stationspec also for non-rail-stationtiles, which is no longer valid since r18876. diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2521,15 +2521,17 @@ static void GetTileDesc_Station(TileInde } td->build_date = BaseStation::GetByTile(tile)->build_date; - const StationSpec *spec = GetStationSpec(tile); - - if (spec != NULL) { - td->station_class = GetStationClassName(spec->sclass); - td->station_name = spec->name; - - if (spec->grffile != NULL) { - const GRFConfig *gc = GetGRFConfig(spec->grffile->grfid); - td->grf = gc->name; + if (HasStationTileRail(tile)) { + const StationSpec *spec = GetStationSpec(tile); + + if (spec != NULL) { + td->station_class = GetStationClassName(spec->sclass); + td->station_name = spec->name; + + if (spec->grffile != NULL) { + const GRFConfig *gc = GetGRFConfig(spec->grffile->grfid); + td->grf = gc->name; + } } }