diff options
author | frosch <frosch@openttd.org> | 2012-04-22 16:27:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-04-22 16:27:55 +0000 |
commit | 6f4d2160c25c75ed0d09657bfb0f85fdac65bfcd (patch) | |
tree | 0002c621456141b330133f45a959fe4c6b28ac7c /src/station_cmd.cpp | |
parent | 73d926c8d4b7cb327cb1d3484dbecd8303268172 (diff) | |
download | openttd-6f4d2160c25c75ed0d09657bfb0f85fdac65bfcd.tar.xz |
(svn r24162) -Codechange: Remove NewGRFClass::GetName() and SetName() in favour of using Get() and direct member access (which is needed anyway for GRF string resolving).
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index c0774556f..08b1cad1d 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2912,7 +2912,7 @@ static void GetTileDesc_Station(TileIndex tile, TileDesc *td) const StationSpec *spec = GetStationSpec(tile); if (spec != NULL) { - td->station_class = StationClass::GetName(spec->cls_id); + td->station_class = StationClass::Get(spec->cls_id)->name; td->station_name = spec->name; if (spec->grf_prop.grffile != NULL) { @@ -2927,7 +2927,7 @@ static void GetTileDesc_Station(TileIndex tile, TileDesc *td) if (IsAirport(tile)) { const AirportSpec *as = Station::GetByTile(tile)->airport.GetSpec(); - td->airport_class = AirportClass::GetName(as->cls_id); + td->airport_class = AirportClass::Get(as->cls_id)->name; td->airport_name = as->name; const AirportTileSpec *ats = AirportTileSpec::GetByTile(tile); |