From c74dfe393f02d1b0d96ad014e888fcebb57e2c9c Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 8 Mar 2023 18:38:19 +0000 Subject: [PATCH] Fix #10556: Duplication of road infrastructure count updates (#10557) When building a road stop --- src/station_cmd.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 53b3ef168e..e9f96f0ce0 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2058,9 +2058,6 @@ CommandCost CmdBuildRoadStop(DoCommandFlag flags, TileIndex tile, uint8 width, u UpdateCompanyRoadInfrastructure(tram_rt, tram_owner, ROAD_STOP_TRACKBIT_FACTOR); Company::Get(st->owner)->infrastructure.station++; - UpdateCompanyRoadInfrastructure(road_rt, road_owner, ROAD_STOP_TRACKBIT_FACTOR); - UpdateCompanyRoadInfrastructure(tram_rt, tram_owner, ROAD_STOP_TRACKBIT_FACTOR); - SetCustomRoadStopSpecIndex(cur_tile, specindex); if (roadstopspec != nullptr) { st->SetRoadStopRandomBits(cur_tile, GB(Random(), 0, 8));