aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2009-07-11 08:16:55 +0000
committerPaul Gilbert2009-07-11 08:16:55 +0000
commit6bf91ab66f392df80ae1171d7882127b1ab81dcf (patch)
tree1d1717bd8163ab69710601b5a7e4b0757852fb84
parent9594beb39fa6eb6c9bad7572989f0eb50fc3bc32 (diff)
downloadscummvm-rg350-6bf91ab66f392df80ae1171d7882127b1ab81dcf.tar.gz
scummvm-rg350-6bf91ab66f392df80ae1171d7882127b1ab81dcf.tar.bz2
scummvm-rg350-6bf91ab66f392df80ae1171d7882127b1ab81dcf.zip
Bugfix to properly save the currently playing midi music when saving a scene
svn-id: r42377
-rw-r--r--engines/tinsel/music.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp
index f80217b4f4..12d9f0393a 100644
--- a/engines/tinsel/music.cpp
+++ b/engines/tinsel/music.cpp
@@ -207,6 +207,10 @@ bool PlayMidiSequence(uint32 dwFileOffset, bool bLoop) {
if (track > 0) {
StopMidi();
+ // StopMidi resets these fields, so set them again
+ currentMidi = dwFileOffset;
+ currentLoop = bLoop;
+
// try to play track, but don't fall back to a true CD
AudioCD.play(track, bLoop ? -1 : 1, 0, 0, true);