make sure that setWeightOpts isn't called before fuel.nas' init fdm listener.
This is a bit hackish and needs to be reconsidered.
This commit is contained in:
parent
9117ddf71d
commit
003ba28784
1 changed files with 3 additions and 1 deletions
|
@ -457,7 +457,9 @@ var setWeightOpts = func {
|
|||
return tankchange;
|
||||
}
|
||||
# Run it at startup to make sure the tank settings are correct
|
||||
settimer(setWeightOpts, 0);
|
||||
_setlistener("/sim/signals/fdm-initialized", func {
|
||||
settimer(setWeightOpts, 0);
|
||||
});
|
||||
|
||||
|
||||
# Called from the F&W dialog when the user selects a weight option
|
||||
|
|
Loading…
Add table
Reference in a new issue