Ensure nearby stations list updated in CBID_HOUSE_DESTRUCTION callback
This commit is contained in:
@@ -572,7 +572,7 @@ uint32 GetWorldPopulation()
|
||||
* Remove stations from nearby station list if a town is no longer in the catchment area of each.
|
||||
* @param t Town to work on
|
||||
*/
|
||||
static void RemoveNearbyStations(Town *t)
|
||||
void RemoveNearbyStations(Town *t)
|
||||
{
|
||||
for (StationList::iterator it = t->stations_near.begin(); it != t->stations_near.end(); /* incremented inside loop */) {
|
||||
const Station *st = *it;
|
||||
|
Reference in New Issue
Block a user