1
0
Fork 0

Fix duplicated FGIO channels on reset.

Thanks to Nicholas Scheel for spotting this.
This commit is contained in:
James Turner 2014-03-26 19:23:34 +00:00
parent 75f9d7e66e
commit 19528fab8c

View file

@ -1007,6 +1007,9 @@ void fgStartNewReset()
simgear::GlobalParticleCallback::setSwitch(NULL); simgear::GlobalParticleCallback::setSwitch(NULL);
globals->resetPropertyRoot(); globals->resetPropertyRoot();
// otherwise channels are duplicated
globals->get_channel_options_list()->clear();
fgInitConfig(0, NULL, true); fgInitConfig(0, NULL, true);
fgInitGeneral(); // all of this? fgInitGeneral(); // all of this?