From a3bbb029fa30330a3b76468812de9e490631b409 Mon Sep 17 00:00:00 2001 From: Patrick Riley Date: Wed, 4 Jan 2017 09:11:27 -0500 Subject: [PATCH] FG crashes from glideslope tunnel if runway id is empty string. This change defends against bad data. --- Nasal/glide_slope_tunnel.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/glide_slope_tunnel.nas b/Nasal/glide_slope_tunnel.nas index 2ad9c9f7d..66aa5a9fa 100644 --- a/Nasal/glide_slope_tunnel.nas +++ b/Nasal/glide_slope_tunnel.nas @@ -73,7 +73,7 @@ var loop = func(id) { apt = a; var is_heliport = 1; foreach (var rwy; keys(apt.runways)) - if (rwy[0] != `H`) + if (rwy and rwy[0] != `H`) is_heliport = 0; if (!is_heliport) {