Skip to content

Commit

Permalink
Mix_FadeInMusicPos: set music_active acc. to music_internal_play() re…
Browse files Browse the repository at this point in the history
…turn code

c.f. default (2.0) branch commit 671a669e1065
  • Loading branch information
sezero committed Oct 6, 2018
1 parent 7e9d11a commit a8f83bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music.c
Expand Up @@ -1016,13 +1016,13 @@ int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position)
SDL_Delay(100);
SDL_LockAudio();
}
music_active = 1;
if (loops == 1) {
/* Loop is the number of times to play the audio */
loops = 0;
}
music_loops = loops;
retval = music_internal_play(music, position);
music_active = (retval == 0);
SDL_UnlockAudio();

return(retval);
Expand Down

0 comments on commit a8f83bc

Please sign in to comment.