1
0
Fork 0

FG crashes from glideslope tunnel if runway id is empty string. This change defends against bad data.

This commit is contained in:
Patrick Riley 2017-01-04 09:11:27 -05:00
parent 49836f9956
commit a3bbb029fa

View file

@ -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) {