]> git.mxchange.org Git - flightgear.git/commitdiff
No avionics sound group for aimodels.
authorThorstenB <brehmt@gmail.com>
Thu, 22 Mar 2012 22:53:18 +0000 (23:53 +0100)
committerThorstenB <brehmt@gmail.com>
Thu, 22 Mar 2012 22:53:18 +0000 (23:53 +0100)
src/Sound/fg_fx.cxx

index 683f882de828698c38fcc625dcc718c57744acb0..b9bbaacc85c681224ce5c04b74dd12ad83828b43 100644 (file)
@@ -64,8 +64,11 @@ FGFX::FGFX ( SGSoundMgr *smgr, const string &refname, SGPropertyNode *props ) :
     SGSampleGroup::_refname = refname;
     SGSampleGroup::_smgr->add(this, refname);
 
-    _avionics = _smgr->find("avionics", true);
-    _avionics->tie_to_listener();
+    if (!_is_aimodel)
+    {
+        _avionics = _smgr->find("avionics", true);
+        _avionics->tie_to_listener();
+    }
 }