File diff r23537:f6a6d4ce4bd5 → r23538:8df50944b27a
src/vehicle_cmd.cpp
Show inline comments
 
@@ -343,14 +343,13 @@ static CommandCost RefitVehicle(Vehicle 
 
	if (!only_this) {
 
		GetVehicleSet(vehicles_to_refit, v, num_vehicles);
 
		/* In this case, we need to check the whole chain. */
 
		v = v->First();
 
	}
 

	
 
	static SmallVector<RefitResult, 16> refit_result;
 
	refit_result.clear();
 
	std::vector<RefitResult> refit_result;
 

	
 
	v->InvalidateNewGRFCacheOfChain();
 
	byte actual_subtype = new_subtype;
 
	for (; v != NULL; v = (only_this ? NULL : v->Next())) {
 
		/* Reset actual_subtype for every new vehicle */
 
		if (!v->IsArticulatedPart()) actual_subtype = new_subtype;