diff options
author | rubidium <rubidium@openttd.org> | 2010-08-07 21:39:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-07 21:39:30 +0000 |
commit | 2b645d1b0de7a01e02ed4e978df684b8bb6741d6 (patch) | |
tree | ad79e568b0fe76b50568119971d7470a3fb5df58 /src/newgrf_station.cpp | |
parent | 5be1f3f06c2d1204afad529d523d8b4cc47a7e2d (diff) | |
download | openttd-2b645d1b0de7a01e02ed4e978df684b8bb6741d6.tar.xz |
(svn r20404) -Codechange: remove the need for StationSpec::allocated
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index e341bd43f..921c1e128 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -173,9 +173,6 @@ void SetCustomStationSpec(StationSpec *statspec) StationClass *station_class; int i; - /* If the station has already been allocated, don't reallocate it. */ - if (statspec->allocated) return; - assert(statspec->cls_id < STAT_CLASS_MAX); station_class = &_station_classes[statspec->cls_id]; @@ -183,7 +180,6 @@ void SetCustomStationSpec(StationSpec *statspec) station_class->spec = ReallocT(station_class->spec, station_class->stations); station_class->spec[i] = statspec; - statspec->allocated = true; } /** |