aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-01 18:49:53 -0400
committerPaul Gilbert2016-09-01 18:49:53 -0400
commitac740c8e39113f0cd50def490dba1c6d51e07e99 (patch)
tree11384f22edfe558c9f33a6505774617f390ac9bc /engines/titanic/sound
parent9e70b0853bd79c07380f2e1975677ab85e208bf2 (diff)
downloadscummvm-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.cpp5
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;
}
}