From 1ace645505dcff58c78a754352b0d18a5598ebaa Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 16 Feb 2010 10:04:53 +0000 Subject: [PATCH] small fix for when sound is disabled --- simgear/sound/sample_group.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx index 1da29059..e2a2b2c7 100644 --- a/simgear/sound/sample_group.cxx +++ b/simgear/sound/sample_group.cxx @@ -275,7 +275,7 @@ SGSampleGroup::stop () void SGSampleGroup::suspend () { - if (_pause == false) { + if (_active && _pause == false) { _pause = true; sample_map_iterator sample_current = _samples.begin(); sample_map_iterator sample_end = _samples.end(); @@ -294,7 +294,7 @@ SGSampleGroup::suspend () void SGSampleGroup::resume () { - if (_pause == true) { + if (_active && _pause == true) { sample_map_iterator sample_current = _samples.begin(); sample_map_iterator sample_end = _samples.end(); for ( ; sample_current != sample_end; ++sample_current ) { -- 2.39.5