summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-17 20:30:07 +0000
committerrubidium <rubidium@openttd.org>2009-07-17 20:30:07 +0000
commit72d6c3a9ad5013555607b7f90f1f0f9dd5faba0b (patch)
tree5508aedf8f0398cf626a783ac481005c1765d84f /src/station.cpp
parent06ea681b5fa361b34000351bcd248ee46c2a939e (diff)
downloadopenttd-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.cpp11
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()) {