summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-27 13:45:30 +0000
committerrubidium <rubidium@openttd.org>2011-12-27 13:45:30 +0000
commit2c09939bd3767d21eed08f7fa316190c89f8aa7d (patch)
tree0ae3a7fc43d0d51e8cba06a63dbd2d049104227f
parent3f7b81289188c1abcabf5d7b4cd95788527d79cb (diff)
downloadopenttd-2c09939bd3767d21eed08f7fa316190c89f8aa7d.tar.xz
(svn r23676) -Fix [FS#4913] (r23412): when removing road stops the wrong tile was checked for updating the infrastructure cache
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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);