1
0
Fork 0

Fix altitude constrain handling.

Thanks to Curt for spotting the issue.
This commit is contained in:
James Turner 2013-07-22 18:04:14 +01:00
parent 7bf96db691
commit 43a8b16dab

View file

@ -132,7 +132,7 @@ var FMSDelegate = {
var active = me.flightplan.currentWP();
if (active == nil) return;
if (active.alt_cstr_type != 'none') {
if (active.alt_cstr_type != nil) {
debug.dump('new WP has valid altitude restriction, setting on AP');
setprop('/autopilot/settings/target-altitude-ft', active.alt_cstr);
}