(svn r16861) -Codechange: move a few more bits from station to basestation (to be shared with waypoints)

This commit is contained in:
rubidium
2009-07-17 20:30:07 +00:00
parent 0e6b735b45
commit f59346a863
2 changed files with 14 additions and 8 deletions

View File

@@ -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()) {