Fix duplicated FGIO channels on reset.
Thanks to Nicholas Scheel for spotting this.
This commit is contained in:
parent
75f9d7e66e
commit
19528fab8c
1 changed files with 3 additions and 0 deletions
|
@ -1007,6 +1007,9 @@ void fgStartNewReset()
|
|||
simgear::GlobalParticleCallback::setSwitch(NULL);
|
||||
|
||||
globals->resetPropertyRoot();
|
||||
// otherwise channels are duplicated
|
||||
globals->get_channel_options_list()->clear();
|
||||
|
||||
fgInitConfig(0, NULL, true);
|
||||
fgInitGeneral(); // all of this?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue