From 033748528492fe64b3a5743cebbdcea663188134 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 24 May 2009 11:39:35 +0000 Subject: (svn r16411) -Fix (r16390): Building articulated roadvehicles caused infinite loop due to v->Next() pointing to v itself. --- src/articulated_vehicles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp index 1407ad9d3..d01118acf 100644 --- a/src/articulated_vehicles.cpp +++ b/src/articulated_vehicles.cpp @@ -333,7 +333,7 @@ void AddArticulatedParts(Vehicle *first, VehicleType type) 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; -- cgit v1.2.3-54-g00ecf