From c7897d4422e35748308a977f966dd7159975945b Mon Sep 17 00:00:00 2001 From: maedhros Date: Sat, 26 May 2007 17:06:45 +0000 Subject: (svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index e96145c01..656cde814 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -609,7 +609,7 @@ void DestroyVehicle(Vehicle *v) /* Now remove any artic part. This will trigger an other * destroy vehicle, which on his turn can remove any * other artic parts. */ - if (EngineHasArticPart(v)) DeleteVehicle(v->next); + if (v->type == VEH_TRAIN && EngineHasArticPart(v)) DeleteVehicle(v->next); } void DeleteVehicleChain(Vehicle *v) -- cgit v1.2.3-70-g09d2