From 58d63ec7265774ce396747f7a23990b3abe9ac9b Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 11 Jun 2008 15:56:55 +0000 Subject: (svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') 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; -- cgit v1.2.3-54-g00ecf