Mercurial > hg > openttd
changeset 13014:ecdff570eab8 draft
(svn r17508) -Fix [FS#3195] (r16859): join station window didn't get updated when stations were removed from the pool
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 12 Sep 2009 12:56:49 +0000 |
parents | 17c2478c4fe1 |
children | 29efbe666d4a |
files | src/base_station_base.h src/station.cpp src/station_base.h |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/base_station_base.h +++ b/src/base_station_base.h @@ -158,6 +158,8 @@ { 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)
--- a/src/station.cpp +++ b/src/station.cpp @@ -116,7 +116,7 @@ * 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); }
--- a/src/station_base.h +++ b/src/station_base.h @@ -119,8 +119,6 @@ /* 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)