diff options
author | rubidium <rubidium@openttd.org> | 2009-09-12 12:56:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-12 12:56:49 +0000 |
commit | c60cebd4bb2a2c0ad68e2bbec814d768cab939f1 (patch) | |
tree | 8db150015b74548e80c6cfc8f0adfb14752f3ac8 | |
parent | 461556e2c07f26106e8005caa18c648b59e30741 (diff) | |
download | openttd-c60cebd4bb2a2c0ad68e2bbec814d768cab939f1.tar.xz |
(svn r17508) -Fix [FS#3195] (r16859): join station window didn't get updated when stations were removed from the pool
-rw-r--r-- | src/base_station_base.h | 2 | ||||
-rw-r--r-- | src/station.cpp | 2 | ||||
-rw-r--r-- | src/station_base.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/base_station_base.h b/src/base_station_base.h index ed71f5125..24317c5ab 100644 --- a/src/base_station_base.h +++ b/src/base_station_base.h @@ -158,6 +158,8 @@ struct BaseStation : StationPool::PoolItem<&_station_pool> { { return (this->facilities & ~FACIL_WAYPOINT) != 0; } + + static void PostDestructor(size_t index); }; #define FOR_ALL_BASE_STATIONS(var) FOR_ALL_ITEMS_FROM(BaseStation, station_index, var, 0) diff --git a/src/station.cpp b/src/station.cpp index a8a89171f..274bfba0b 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -116,7 +116,7 @@ Station::~Station() * after removing item from the pool. * @param index index of deleted item */ -void Station::PostDestructor(size_t index) +void BaseStation::PostDestructor(size_t index) { InvalidateWindowData(WC_SELECT_STATION, 0, 0); } diff --git a/src/station_base.h b/src/station_base.h index 9ed0262c6..4bd1b54af 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -119,8 +119,6 @@ public: /* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const; /* virtual */ void GetTileArea(TileArea *ta, StationType type) const; - - static void PostDestructor(size_t index); }; #define FOR_ALL_STATIONS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Station, var) |