mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains.
This commit is contained in:
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…
Reference in New Issue
Block a user