sheesh ... another little bug to fix: fixate path for settimer closure
This commit is contained in:
parent
59e51fa533
commit
87e746a755
1 changed files with 2 additions and 1 deletions
|
@ -460,7 +460,8 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
||||||
die("\n***\n*\n* Illegal use of reserved view index "
|
die("\n***\n*\n* Illegal use of reserved view index "
|
||||||
~ index ~ ". Use indices >= 100!\n*\n***");
|
~ index ~ ". Use indices >= 100!\n*\n***");
|
||||||
} elsif (index >= 100 and index < 200) {
|
} elsif (index >= 100 and index < 200) {
|
||||||
settimer(func { aircraft.data.add(v.getPath() ~ "/enabled") }, 0);
|
var enabled = v.getPath() ~ "/enabled";
|
||||||
|
settimer(func { aircraft.data.add(enabled) }, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue