diff options
author | Paul Gilbert | 2016-09-01 18:49:53 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-01 18:49:53 -0400 |
commit | ac740c8e39113f0cd50def490dba1c6d51e07e99 (patch) | |
tree | 11384f22edfe558c9f33a6505774617f390ac9bc /engines/titanic/sound | |
parent | 9e70b0853bd79c07380f2e1975677ab85e208bf2 (diff) | |
download | scummvm-rg350-ac740c8e39113f0cd50def490dba1c6d51e07e99.tar.gz scummvm-rg350-ac740c8e39113f0cd50def490dba1c6d51e07e99.tar.bz2 scummvm-rg350-ac740c8e39113f0cd50def490dba1c6d51e07e99.zip |
TITANIC: Fix to setting and checking sounds
Diffstat (limited to 'engines/titanic/sound')
-rw-r--r-- | engines/titanic/sound/sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp index 30772e780c..6d27d1de49 100644 --- a/engines/titanic/sound/sound.cpp +++ b/engines/titanic/sound/sound.cpp @@ -94,10 +94,11 @@ void CSound::checkSounds() { if (_soundManager.isActive(soundItem->_waveFile)) { i = _sounds.erase(i); delete soundItem; + continue; } - } else { - ++i; } + + ++i; } } |