(svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains.

This commit is contained in:
maedhros 2007-05-26 17:06:45 +00:00
parent fd2d6329f3
commit 3914f3c85c
1 changed files with 1 additions and 1 deletions

View File

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