diff options
author | Martin Kiewitz | 2010-01-01 22:16:53 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-01 22:16:53 +0000 |
commit | f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1 (patch) | |
tree | 80adb235a48c16b305b178c2f9238c68a032bb98 /sound | |
parent | 0a965ced69bbc28ce16e9ae4e80a74a60f95a5e1 (diff) | |
download | scummvm-rg350-f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1.tar.gz scummvm-rg350-f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1.tar.bz2 scummvm-rg350-f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1.zip |
init _numPlayedLoops inside LinearMemoryStream
svn-id: r46857
Diffstat (limited to 'sound')
-rw-r--r-- | sound/audiostream.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 795953c3a8..e8e90de4fa 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -144,6 +144,7 @@ public: } else { _numLoops = 1; } + _numPlayedLoops = 0; _origPtr = autoFreeMemory ? ptr : 0; } @@ -164,6 +165,7 @@ public: void setNumLoops(uint numLoops) { _numLoops = numLoops; + _numPlayedLoops = 0; if (numLoops == 1) { _loopPtr = 0; |