summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-07 22:31:18 +0000
committerterkhen <terkhen@openttd.org>2010-03-07 22:31:18 +0000
commite6de669bf26946a77f25a195769cd90d677327b6 (patch)
treed2a56c613b4f4ffac333694f46584c79802677d5 /src
parent40f106ba7c2b0055f61e652674701bce53fb06a6 (diff)
downloadopenttd-e6de669bf26946a77f25a195769cd90d677327b6.tar.xz
(svn r19373) -Fix (r19372): Missing variable declaration.
Diffstat (limited to 'src')
-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 6b881352e..a37d296d2 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -254,7 +254,7 @@ static CommandCost RemoveShiplift(TileIndex tile, DoCommandFlag flags)
}
/* make sure no vehicle is on the tile. */
- ret = EnsureNoVehicleOnGround(tile);
+ CommandCost ret = EnsureNoVehicleOnGround(tile);
if (ret.Succeeded()) ret = EnsureNoVehicleOnGround(tile + delta);
if (ret.Succeeded()) ret = EnsureNoVehicleOnGround(tile - delta);
ret.SetGlobalErrorMessage();