diff options
author | rubidium <rubidium@openttd.org> | 2009-09-10 14:37:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-10 14:37:55 +0000 |
commit | 860a538adc56a678f640f606692ea7ca00c8d424 (patch) | |
tree | 70ac11ef8b475179092b2a435fa768d761bcc3b5 /src/water_cmd.cpp | |
parent | 751ea62f442f0a8b1623e3df0c0ac5971f776d40 (diff) | |
download | openttd-860a538adc56a678f640f606692ea7ca00c8d424.tar.xz |
(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile)
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index a756024f2..2f27bc704 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -184,7 +184,7 @@ static CommandCost RemoveShipDepot(TileIndex tile, DoCommandFlag flags) if (flags & DC_EXEC) { /* Kill the depot, which is registered at the northernmost tile. Use that one */ - delete Depot::GetByTile(tile2 < tile ? tile2 : tile); + delete Depot::GetByTile(tile); MakeWaterKeepingClass(tile, GetTileOwner(tile)); MakeWaterKeepingClass(tile2, GetTileOwner(tile2)); |