From 619f3b9e8cb343464bef76b2d1e25b474e13212b Mon Sep 17 00:00:00 2001
From: Joshua Davidson <joshuadavidson2000@gmail.com>
Date: Wed, 28 Jun 2017 17:07:08 -0400
Subject: [PATCH] A3XX: Fix another bug with new FMGC

---
 Nasal/libraries.nas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas
index 354016c0..2820c78f 100644
--- a/Nasal/libraries.nas
+++ b/Nasal/libraries.nas
@@ -223,7 +223,7 @@ var librariesLoop = maketimer(0.1, func {
 		setprop("/it-autoflight/internal/bank-limit", 25);
 	}
 	
-	if (getprop("/it-autoflight/custom/show-hdg") == 0) {
+	if (getprop("/it-autoflight/custom/show-hdg") == 0 and getprop("/it-autoflight/output/lat") != 4) {
 		setprop("/it-autoflight/input/hdg", math.round(getprop("/orientation/heading-magnetic-deg")));
 	}
 });