FG crashes from glideslope tunnel if runway id is empty string. This change defends against bad data.
This commit is contained in:
parent
49836f9956
commit
a3bbb029fa
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ var loop = func(id) {
|
||||||
apt = a;
|
apt = a;
|
||||||
var is_heliport = 1;
|
var is_heliport = 1;
|
||||||
foreach (var rwy; keys(apt.runways))
|
foreach (var rwy; keys(apt.runways))
|
||||||
if (rwy[0] != `H`)
|
if (rwy and rwy[0] != `H`)
|
||||||
is_heliport = 0;
|
is_heliport = 0;
|
||||||
|
|
||||||
if (!is_heliport) {
|
if (!is_heliport) {
|
||||||
|
|
Loading…
Reference in a new issue