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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
maedhros 17 years ago
parent fd2d6329f3
commit 3914f3c85c

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

Loading…
Cancel
Save