(svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user