Do not proceed in update() until is_active() returns true
This commit is contained in:
parent
ac8fb6fd24
commit
2098593531
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ bool FGSoundManager::stationaryView() const
|
|||
// Actual sound update is triggered by the subsystem manager.
|
||||
void FGSoundManager::update(double dt)
|
||||
{
|
||||
if (_is_initialized && _sound_working->getBoolValue())
|
||||
if (is_active() && _is_initialized && _sound_working->getBoolValue())
|
||||
{
|
||||
bool enabled = _sound_enabled->getBoolValue();
|
||||
if (enabled != _enabled)
|
||||
|
|
Loading…
Add table
Reference in a new issue