diff --git a/sw/lib/ocaml/aircraft.ml b/sw/lib/ocaml/aircraft.ml index 0d672b83b8..3e57094833 100644 --- a/sw/lib/ocaml/aircraft.ml +++ b/sw/lib/ocaml/aircraft.ml @@ -262,7 +262,7 @@ let parse_aircraft = fun ?(parse_af=false) ?(parse_ap=false) ?(parse_fp=false) ? with Not_found -> (* target not found or not defined, add in all targets instead *) List.iter (fun t -> - let c = Hashtbl.find config_by_target target in + let c = Hashtbl.find config_by_target t.AfT.name in Hashtbl.replace config_by_target target { c with autopilot = true } ) target_list; Some autopilots