# HG changeset patch # User Jonathan G Rennison # Date 2019-12-08 12:16:11 # Node ID 7c741ef1a615b75ae97e4a15a8a784e1e01f2392 # Parent 87954aa2bd5b7c6770695837c04aafb2522fa5e3 Fix: Infrastructure total update when removing tram road stop The wrong road owner was used when updating the tram infrastructure total. This could result in desyncs, negative infrastructure totals, etc. diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2126,7 +2126,7 @@ CommandCost CmdRemoveRoadStop(TileIndex /* Update company infrastructure counts. */ int count = CountBits(road_bits); UpdateCompanyRoadInfrastructure(road_type[RTT_ROAD], road_owner[RTT_ROAD], count); - UpdateCompanyRoadInfrastructure(road_type[RTT_TRAM], road_owner[RTT_ROAD], count); + UpdateCompanyRoadInfrastructure(road_type[RTT_TRAM], road_owner[RTT_TRAM], count); } }