aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-12-13 12:31:39 +0000
committerJohannes Schickel2008-12-13 12:31:39 +0000
commit9555ea8bc9efe3f921b1d935fd9346d70945b9f4 (patch)
treea45034b9a8b64d65e6cc21fe53d7a3912ec09a64
parent303d463a503f64c10115ae91e26c231a90989f46 (diff)
downloadscummvm-rg350-9555ea8bc9efe3f921b1d935fd9346d70945b9f4.tar.gz
scummvm-rg350-9555ea8bc9efe3f921b1d935fd9346d70945b9f4.tar.bz2
scummvm-rg350-9555ea8bc9efe3f921b1d935fd9346d70945b9f4.zip
Fix for bug #2423449 "AGOS: Music Looping broken (regression)".
svn-id: r35335
-rw-r--r--sound/midiparser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/midiparser.cpp b/sound/midiparser.cpp
index 389de58ea4..093cde614a 100644
--- a/sound/midiparser.cpp
+++ b/sound/midiparser.cpp
@@ -285,7 +285,7 @@ void MidiParser::resetTracking() {
bool MidiParser::setTrack(int track) {
if (track < 0 || track >= _num_tracks)
return false;
- else if (track == _active_track)
+ else if (track == _active_track && _position._play_pos)
return true;
if (_smartJump)
@@ -307,9 +307,6 @@ void MidiParser::stopPlaying() {
else
allNotesOff();
resetTracking();
-
- _active_track = _num_tracks+1;
- memset(_active_notes, 0, sizeof(_active_notes));
}
void MidiParser::hangAllActiveNotes() {