1
0
Fork 0

Do not proceed in update() until is_active() returns true

This commit is contained in:
Erik Hofman 2017-01-11 15:14:08 +01:00
parent ac8fb6fd24
commit 2098593531

View file

@ -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)