summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
committerrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
commitb5e467978b70884033d8e25a4a9738cc17699e4e (patch)
treea41b987e5fdc223ac9abf159f9ee753f07f2234d /src/water_cmd.cpp
parent6e397dd3f0b4999c65f0ad5d35fa9007bc6bc9d8 (diff)
downloadopenttd-b5e467978b70884033d8e25a4a9738cc17699e4e.tar.xz
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index fe7938384..d7542c55f 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -222,7 +222,7 @@ CommandCost CmdBuildShipDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
if (flags & DC_EXEC) {
Depot *depot = new Depot(tile);
- depot->town_index = ClosestTownFromTile(tile, (uint)-1)->index;
+ depot->town_index = ClosestTownFromTile(tile, UINT_MAX)->index;
MakeShipDepot(tile, _current_company, DEPOT_NORTH, axis, wc1);
MakeShipDepot(tile2, _current_company, DEPOT_SOUTH, axis, wc2);