summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-10 14:33:07 +0000
committerrubidium <rubidium@openttd.org>2009-09-10 14:33:07 +0000
commit55ddce8da2b6993fa1228a8935526d40fc44de46 (patch)
tree02f1f3836fd9c76b19b741a772d0efb29c528d7b /src/water_cmd.cpp
parentbb94724a092750794e8c2ad1a6537fac6b902b9e (diff)
downloadopenttd-55ddce8da2b6993fa1228a8935526d40fc44de46.tar.xz
(svn r17493) -Codechange: store the depot index on the map
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index f3f60c52c..a756024f2 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -141,8 +141,8 @@ CommandCost CmdBuildShipDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
Depot *depot = new Depot(tile);
depot->town_index = ClosestTownFromTile(tile, UINT_MAX)->index;
- MakeShipDepot(tile, _current_company, DEPOT_NORTH, axis, wc1);
- MakeShipDepot(tile2, _current_company, DEPOT_SOUTH, axis, wc2);
+ MakeShipDepot(tile, _current_company, depot->index, DEPOT_NORTH, axis, wc1);
+ MakeShipDepot(tile2, _current_company, depot->index, DEPOT_SOUTH, axis, wc2);
MarkTileDirtyByTile(tile);
MarkTileDirtyByTile(tile2);
}