From 257fdb38e6dde17a1d3546d83c67679ccba7160b Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 17 Sep 2007 04:23:03 +0000 Subject: (svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes. --- src/articulated_vehicles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/articulated_vehicles.h') diff --git a/src/articulated_vehicles.h b/src/articulated_vehicles.h index 45c9f1937..ff1342fb3 100644 --- a/src/articulated_vehicles.h +++ b/src/articulated_vehicles.h @@ -5,7 +5,7 @@ #ifndef ARTICULATED_VEHICLES_H #define ARTICULATED_VEHICLES_H -uint CountArticulatedParts(EngineID engine_type); +uint CountArticulatedParts(EngineID engine_type, bool purchase_window); void AddArticulatedParts(Vehicle **vl, VehicleType type); #endif /* ARTICULATED_VEHICLES_H */ -- cgit v1.2.3-54-g00ecf