Changeset - r6707:46aeadbf82ec
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-05-26 17:06:45
maedhros@openttd.org
(svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)