From 9555ea8bc9efe3f921b1d935fd9346d70945b9f4 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 13 Dec 2008 12:31:39 +0000 Subject: Fix for bug #2423449 "AGOS: Music Looping broken (regression)". svn-id: r35335 --- sound/midiparser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sound/midiparser.cpp') 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() { -- cgit v1.2.3