]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/adf.cxx
Merge branch 'torsten/auto'
[flightgear.git] / src / Instrumentation / adf.cxx
index d2ac69145c262c2ff380aa3341c7643fdbc71a25..6da2a2ed40d1614d8f01386d6d3b3a1e0bd7fee1 100644 (file)
@@ -102,8 +102,9 @@ ADF::init ()
     _ident_node = node->getChild("ident", 0, true);
     _ident_audible_node = node->getChild("ident-audible", 0, true);
 
-    SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
+    SGSoundMgr *smgr = globals->get_soundmgr();
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
 
     morse.init();