Changeset - r12000:2b94296cdabd
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2009-05-24 11:39:35
frosch@openttd.org
(svn r16411) -Fix (r16390): Building articulated roadvehicles caused infinite loop due to v->Next() pointing to v itself.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/articulated_vehicles.cpp
Show inline comments
 
@@ -333,7 +333,7 @@ void AddArticulatedParts(Vehicle *first,
 
				RoadVehicle *front = (RoadVehicle *)v;
 
				RoadVehicle *rv = new RoadVehicle();
 
				rv->subtype = 0;
 
				previous->SetNext(u);
 
				previous->SetNext(rv);
 
				rv->rcache.first_engine = front->engine_type;
 
				rv->rcache.cached_veh_length = 8; // Callback is called when the consist is finished
 
				rv->state = RVSB_IN_DEPOT;
0 comments (0 inline, 0 general)