(svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains.
This commit is contained in:
@@ -609,7 +609,7 @@ void DestroyVehicle(Vehicle *v)
|
|||||||
/* Now remove any artic part. This will trigger an other
|
/* Now remove any artic part. This will trigger an other
|
||||||
* destroy vehicle, which on his turn can remove any
|
* destroy vehicle, which on his turn can remove any
|
||||||
* other artic parts. */
|
* other artic parts. */
|
||||||
if (EngineHasArticPart(v)) DeleteVehicle(v->next);
|
if (v->type == VEH_TRAIN && EngineHasArticPart(v)) DeleteVehicle(v->next);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteVehicleChain(Vehicle *v)
|
void DeleteVehicleChain(Vehicle *v)
|
||||||
|
Reference in New Issue
Block a user