]> git.mxchange.org Git - flightgear.git/commitdiff
Once again, I forgot that we bind() subsystems *before* init().
authorJames Turner <zakalawe@mac.com>
Sun, 1 Aug 2010 22:50:52 +0000 (23:50 +0100)
committerJames Turner <zakalawe@mac.com>
Sun, 1 Aug 2010 22:50:52 +0000 (23:50 +0100)
src/Instrumentation/instrument_mgr.cxx

index 646d3fba0bdf0b49070966d1e3e93388e6aa5c24..b85f191aebabbcbf6a660713941b695e006e238d 100644 (file)
@@ -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();
 }