1
0
Fork 0

(Animated jetways) Fix dialog "can't find object" Nasal errors

This commit is contained in:
Ryan Miller 2011-06-16 15:24:31 -07:00
parent 2cb19bc34e
commit 887b9704b5

View file

@ -13,12 +13,15 @@
var UPDATE_PERIOD = 5;
var update = func
{
var list = "";
foreach (var apt; jetways.loaded_airports)
if (jetways != nil)
{
var list = "";
foreach (var apt; jetways.loaded_airports)
{
list ~= apt ~ " ";
}
aptlist.setValue(list == "" ? "No airports loaded" : "Loaded airports: " ~ list);
}
aptlist.setValue(list == "" ? "No airports loaded" : "Loaded airports: " ~ list);
settimer(update, UPDATE_PERIOD);
};
settimer(update, 0);