diff options
author | rubidium <rubidium@openttd.org> | 2009-07-17 20:30:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-17 20:30:07 +0000 |
commit | 72d6c3a9ad5013555607b7f90f1f0f9dd5faba0b (patch) | |
tree | 5508aedf8f0398cf626a783ac481005c1765d84f /src/station.cpp | |
parent | 06ea681b5fa361b34000351bcd248ee46c2a939e (diff) | |
download | openttd-72d6c3a9ad5013555607b7f90f1f0f9dd5faba0b.tar.xz |
(svn r16861) -Codechange: move a few more bits from station to basestation (to be shared with waypoints)
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/station.cpp b/src/station.cpp index 6b583a07c..641e77c91 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -31,8 +31,14 @@ StationPool _station_pool("Station"); INSTANTIATE_POOL_METHODS(Station) +BaseStation::~BaseStation() +{ + free(this->name); + free(this->speclist); +} + Station::Station(TileIndex tile) : - xy(tile), + BaseStation(tile), train_tile(INVALID_TILE), airport_tile(INVALID_TILE), dock_tile(INVALID_TILE), @@ -57,9 +63,6 @@ Station::Station(TileIndex tile) : */ Station::~Station() { - free(this->name); - free(this->speclist); - if (CleaningPool()) return; while (!this->loading_vehicles.empty()) { |