From 6bf91ab66f392df80ae1171d7882127b1ab81dcf Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 11 Jul 2009 08:16:55 +0000 Subject: [PATCH] Bugfix to properly save the currently playing midi music when saving a scene svn-id: r42377 --- engines/tinsel/music.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp index f80217b4f4e..12d9f0393aa 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);