diff options
author | rubidium <rubidium@openttd.org> | 2009-09-10 14:27:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-10 14:27:43 +0000 |
commit | bb94724a092750794e8c2ad1a6537fac6b902b9e (patch) | |
tree | 53e2fad2517d84d432e7f047445e888643e15c67 /src/road_cmd.cpp | |
parent | 96e2435aa827b9e4af60b7c87fd8da38f9b87cc2 (diff) | |
download | openttd-bb94724a092750794e8c2ad1a6537fac6b902b9e.tar.xz |
(svn r17492) -Codechange: don't store the town index for road depots.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index d3c865e35..05e1ef571 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -882,7 +882,7 @@ CommandCost CmdBuildRoadDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui Depot *dep = new Depot(tile); dep->town_index = ClosestTownFromTile(tile, UINT_MAX)->index; - MakeRoadDepot(tile, _current_company, dir, rt, dep->town_index); + MakeRoadDepot(tile, _current_company, dir, rt); MarkTileDirtyByTile(tile); } return cost.AddCost(_price.build_road_depot); |