summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-11 15:56:55 +0000
committersmatz <smatz@openttd.org>2008-06-11 15:56:55 +0000
commit58d63ec7265774ce396747f7a23990b3abe9ac9b (patch)
tree29d59014c3ee2ba4f7e2ed5d6f1f2494dbd18f53 /src/vehicle.cpp
parentf56fe58d481624fdbcf7d5897457339ee58c34bb (diff)
downloadopenttd-58d63ec7265774ce396747f7a23990b3abe9ac9b.tar.xz
(svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 5d57e0dba..bda5efefd 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -206,7 +206,7 @@ Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z, bool without_c
/** Procedure called for every vehicle found in tunnel/bridge in the hash map */
static void *GetVehicleTunnelBridgeProc(Vehicle *v, void *data)
{
- if (v->type != VEH_TRAIN && v->type != VEH_ROAD) return NULL;
+ if (v->type != VEH_TRAIN && v->type != VEH_ROAD && v->type != VEH_SHIP) return NULL;
_error_message = VehicleInTheWayErrMsg(v);
return v;