diff options
author | rubidium <rubidium@openttd.org> | 2010-08-07 21:10:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-07 21:10:57 +0000 |
commit | 2d3ee123af3c41faf9870abfc8d579c97cc50f2f (patch) | |
tree | 2af2196fabea14d3a3fd24575c84c360807b0d36 /src/newgrf_station.cpp | |
parent | 6d6939f844783e4e2d6a844aa53e0e059303f2f3 (diff) | |
download | openttd-2d3ee123af3c41faf9870abfc8d579c97cc50f2f.tar.xz |
(svn r20402) -Codechange: rename the airport/station class id to something slightly more generic
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 90d76c1bf..e341bd43f 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -176,8 +176,8 @@ void SetCustomStationSpec(StationSpec *statspec) /* If the station has already been allocated, don't reallocate it. */ if (statspec->allocated) return; - assert(statspec->sclass < STAT_CLASS_MAX); - station_class = &_station_classes[statspec->sclass]; + assert(statspec->cls_id < STAT_CLASS_MAX); + station_class = &_station_classes[statspec->cls_id]; i = station_class->stations++; station_class->spec = ReallocT(station_class->spec, station_class->stations); @@ -606,7 +606,7 @@ static const SpriteGroup *StationResolveReal(const ResolverObject *object, const uint cargo = 0; CargoID cargo_type = object->u.station.cargo_type; - if (bst == NULL || statspec->sclass == STAT_CLASS_WAYP) { + if (bst == NULL || statspec->cls_id == STAT_CLASS_WAYP) { return group->loading[0]; } |