From 19528fab8cd2a56f8ef486c817620488a842a862 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 26 Mar 2014 19:23:34 +0000 Subject: [PATCH] Fix duplicated FGIO channels on reset. Thanks to Nicholas Scheel for spotting this. --- src/Main/fg_init.cxx | 3 +++ 1 file changed, 3 insertions(+) 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? -- 2.39.5