From: ThorstenB Date: Thu, 22 Mar 2012 22:53:18 +0000 (+0100) Subject: No avionics sound group for aimodels. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc9331fc3f416237d8d1ce0d68736e2dd010c372;p=flightgear.git No avionics sound group for aimodels. --- diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index 683f882de..b9bbaacc8 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -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(); + } }