mirror of https://github.com/OpenTTD/OpenTTD
(svn r17508) -Fix [FS#3195] (r16859): join station window didn't get updated when stations were removed from the pool
parent
461556e2c0
commit
c60cebd4bb
|
@ -158,6 +158,8 @@ struct BaseStation : StationPool::PoolItem<&_station_pool> {
|
||||||
{
|
{
|
||||||
return (this->facilities & ~FACIL_WAYPOINT) != 0;
|
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)
|
#define FOR_ALL_BASE_STATIONS(var) FOR_ALL_ITEMS_FROM(BaseStation, station_index, var, 0)
|
||||||
|
|
|
@ -116,7 +116,7 @@ Station::~Station()
|
||||||
* after removing item from the pool.
|
* after removing item from the pool.
|
||||||
* @param index index of deleted item
|
* @param index index of deleted item
|
||||||
*/
|
*/
|
||||||
void Station::PostDestructor(size_t index)
|
void BaseStation::PostDestructor(size_t index)
|
||||||
{
|
{
|
||||||
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
|
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,8 +119,6 @@ public:
|
||||||
/* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const;
|
/* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const;
|
||||||
|
|
||||||
/* virtual */ void GetTileArea(TileArea *ta, StationType type) 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)
|
#define FOR_ALL_STATIONS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Station, var)
|
||||||
|
|
Loading…
Reference in New Issue