Fix #8137: New clients can't join (desync) after funding an industry

This commit is contained in:
dP
2020-05-12 02:21:14 +03:00
committed by Charles Pigott
parent 7bd52970a1
commit f2a9a1e2a5
4 changed files with 12 additions and 6 deletions

View File

@@ -3978,8 +3978,9 @@ const StationList *StationFinder::GetStations()
assert(this->w == 1 && this->h == 1);
AddNearbyStationsByCatchment(this->tile, &this->stations, Town::GetByTile(this->tile)->stations_near);
} else {
ForAllStationsAroundTiles(*this, [this](Station *st) {
ForAllStationsAroundTiles(*this, [this](Station *st, TileIndex tile) {
this->stations.insert(st);
return true;
});
}
this->tile = INVALID_TILE;