|
|
|
@ -94,8 +94,6 @@ Station::~Station()
|
|
|
|
|
/* Remove all news items */
|
|
|
|
|
DeleteStationNews(this->index);
|
|
|
|
|
|
|
|
|
|
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
|
|
|
|
|
|
|
|
|
|
for (CargoID c = 0; c < NUM_CARGO; c++) {
|
|
|
|
|
goods[c].cargo.Truncate(0);
|
|
|
|
|
}
|
|
|
|
@ -108,6 +106,16 @@ Station::~Station()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Invalidating of the JoinStation window has to be done
|
|
|
|
|
* after removing item from the pool.
|
|
|
|
|
* @param index index of deleted item
|
|
|
|
|
*/
|
|
|
|
|
void Station::PostDestructor(size_t index)
|
|
|
|
|
{
|
|
|
|
|
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the primary road stop (the first road stop) that the given vehicle can load/unload.
|
|
|
|
|
* @param v the vehicle to get the first road stop for
|
|
|
|
|