mirror of https://github.com/OpenTTD/OpenTTD
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.pull/7857/head
parent
03bbae7fe9
commit
35dc377a58
|
@ -2126,7 +2126,7 @@ CommandCost CmdRemoveRoadStop(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
|
||||||
/* Update company infrastructure counts. */
|
/* Update company infrastructure counts. */
|
||||||
int count = CountBits(road_bits);
|
int count = CountBits(road_bits);
|
||||||
UpdateCompanyRoadInfrastructure(road_type[RTT_ROAD], road_owner[RTT_ROAD], count);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue