[ocaml] iter on correct target name

This commit is contained in:
Gautier Hattenberger
2020-09-02 10:29:54 +02:00
parent ba931c0315
commit 6aef1fe591
+1 -1
View File
@@ -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