]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/instrument_mgr.cxx
GPWS: avoid "altitude_callout_voice != NULL" assertion
[flightgear.git] / src / Instrumentation / instrument_mgr.cxx
index b85f191aebabbcbf6a660713941b695e006e238d..19fcaeb066ea21386d1fb4a4e2ae932b3ba3c9e0 100644 (file)
@@ -55,7 +55,8 @@ FGInstrumentMgr::FGInstrumentMgr () :
   _explicitGps(false)
 {
     set_subsystem("od_gauge", new FGODGauge);
-    set_subsystem("hud", new HUD);
+    
+    globals->add_subsystem("hud", new HUD, SGSubsystemMgr::DISPLAY);
 }
 
 FGInstrumentMgr::~FGInstrumentMgr ()
@@ -92,6 +93,7 @@ void FGInstrumentMgr::init()
     SGPropertyNode_ptr nd(new SGPropertyNode);
     nd->setStringValue("name", "gps");
     nd->setIntValue("number", 0);
+    _instruments.push_back("gps[0]");
     set_subsystem("gps[0]", new GPS(nd));
   }