diff --git a/src/Track.cpp b/src/Track.cpp index 9aa43eaed..c090e0319 100644 --- a/src/Track.cpp +++ b/src/Track.cpp @@ -736,7 +736,7 @@ void TrackList::GroupChannels( auto after = iter; auto end = this->ListOfTracks::end(); auto count = groupSize; - for ( ; after != end && count--; ++after ) + for ( ; after != end && count; ++after, --count ) ; if ( count == 0 ) { auto unlink = [&] ( Track &tr ) {