Skip to content

Commit 8c516fc

Browse files
committed
MIX_SetTrackGroup: Fixed doubly-linked list state when moving between groups.
Fixes #762.
1 parent d28c009 commit 8c516fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SDL_mixer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,6 +2730,7 @@ bool MIX_SetTrackGroup(MIX_Track *track, MIX_Group *group)
27302730
if (oldgroup) { // remove from current group, if in one.
27312731
if (track->group_prev) {
27322732
track->group_prev->group_next = track->group_next;
2733+
track->group_prev = NULL;
27332734
} else {
27342735
oldgroup->tracks = track->group_next;
27352736
}

0 commit comments

Comments
 (0)