aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-05 19:12:39 -0400
committerPaul Gilbert2016-11-05 19:12:39 -0400
commitcf1efc84308ec763ea78d166a14057a95c379cab (patch)
tree08090cef67ab160b531f7b7a4dffd8f53d341b29 /engines/titanic/sound/sound.cpp
parentdb1ed6db3e44720a7efcfe62b77e166bb8809e1f (diff)
downloadscummvm-rg350-cf1efc84308ec763ea78d166a14057a95c379cab.tar.gz
scummvm-rg350-cf1efc84308ec763ea78d166a14057a95c379cab.tar.bz2
scummvm-rg350-cf1efc84308ec763ea78d166a14057a95c379cab.zip
TITANIC: Fix replaying cached previously played sounds
Diffstat (limited to 'engines/titanic/sound/sound.cpp')
-rw-r--r--engines/titanic/sound/sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp
index fb8cc299df..c28823148e 100644
--- a/engines/titanic/sound/sound.cpp
+++ b/engines/titanic/sound/sound.cpp
@@ -129,6 +129,7 @@ CWaveFile *CSound::loadSound(const CString &name) {
// Found it, so move it to the front of the list and return
_sounds.remove(soundItem);
_sounds.push_front(soundItem);
+ soundItem->_waveFile->reset();
return soundItem->_waveFile;
}
}