From c61a14afdd7f2155733fce01b0551c5430460930 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 1 Aug 2010 23:50:52 +0100 Subject: [PATCH] Once again, I forgot that we bind() subsystems *before* init(). --- src/Instrumentation/instrument_mgr.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Instrumentation/instrument_mgr.cxx b/src/Instrumentation/instrument_mgr.cxx index 646d3fba0..b85f191ae 100644 --- a/src/Instrumentation/instrument_mgr.cxx +++ b/src/Instrumentation/instrument_mgr.cxx @@ -95,6 +95,13 @@ void FGInstrumentMgr::init() set_subsystem("gps[0]", new GPS(nd)); } + // bind() created instruments before init. + for (unsigned int i=0; i<_instruments.size(); ++i) { + const std::string& nm(_instruments[i]); + SGSubsystem* instr = get_subsystem(nm); + instr->bind(); + } + SGSubsystemGroup::init(); } -- 2.39.5