(Animated jetways) Fix dialog "can't find object" Nasal errors
This commit is contained in:
parent
2cb19bc34e
commit
887b9704b5
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue