diff options
author | dP <dp@dpointer.org> | 2020-05-12 02:21:14 +0300 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-05-13 08:43:01 +0100 |
commit | f2a9a1e2a5282d91760783bd04df3603badd2ba9 (patch) | |
tree | 202b462b0f617bf0b24995685547cb4671d00d88 /src/station_cmd.cpp | |
parent | 7bd52970a1e83cb88069e73e26479eb71bd17726 (diff) | |
download | openttd-f2a9a1e2a5282d91760783bd04df3603badd2ba9.tar.xz |
Fix #8137: New clients can't join (desync) after funding an industry
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 7bf2c43df..6cfd94bb2 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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; |