From 2c09939bd3767d21eed08f7fa316190c89f8aa7d Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 27 Dec 2011 13:45:30 +0000 Subject: (svn r23676) -Fix [FS#4913] (r23412): when removing road stops the wrong tile was checked for updating the infrastructure cache --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index c2de53bde..57108c082 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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); -- cgit v1.2.3-54-g00ecf