From: James Turner Date: Wed, 26 Mar 2014 19:23:34 +0000 (+0000) Subject: Fix duplicated FGIO channels on reset. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19528fab8cd2a56f8ef486c817620488a842a862;p=flightgear.git Fix duplicated FGIO channels on reset. Thanks to Nicholas Scheel for spotting this. --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 06404440b..4b7e5b6fd 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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?