summaryrefslogtreecommitdiff
path: root/src/disaster_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-05 21:20:22 +0000
committeralberth <alberth@openttd.org>2010-03-05 21:20:22 +0000
commitc395b93acd69106df6005e66264d9114e0198440 (patch)
tree5cab6ad9aa5c0ff7ee6ddb129ed9b8d439bbedbe /src/disaster_cmd.cpp
parent0bfd06245b57aa1276cc321fc8d841fd655f7b79 (diff)
downloadopenttd-c395b93acd69106df6005e66264d9114e0198440.tar.xz
(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r--src/disaster_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index 6ff1ed1ba..d2f34f2cc 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -67,7 +67,7 @@ enum DisasterSubType {
static void DisasterClearSquare(TileIndex tile)
{
- if (!EnsureNoVehicleOnGround(tile)) return;
+ if (EnsureNoVehicleOnGround(tile).Failed()) return;
switch (GetTileType(tile)) {
case MP_RAILWAY: