(svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt

This commit is contained in:
smatz
2008-06-11 15:56:55 +00:00
parent f56fe58d48
commit 58d63ec726
2 changed files with 3 additions and 3 deletions

View File

@@ -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;