mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r23676) -Fix [FS#4913] (r23412): when removing road stops the wrong tile was checked for updating the infrastructure cache
This commit is contained in:
parent
3f7b812891
commit
2c09939bd3
@ -2003,7 +2003,7 @@ CommandCost CmdRemoveRoadStop(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
|
||||
/* Update company infrastructure counts. */
|
||||
RoadType rt;
|
||||
FOR_EACH_SET_ROADTYPE(rt, rts) {
|
||||
Company *c = Company::GetIfValid(GetRoadOwner(tile, rt));
|
||||
Company *c = Company::GetIfValid(GetRoadOwner(cur_tile, rt));
|
||||
if (c != NULL) {
|
||||
c->infrastructure.road[rt] += CountBits(road_bits);
|
||||
DirtyCompanyInfrastructureWindows(c->index);
|
||||
|
Loading…
Reference in New Issue
Block a user