Skip to content

Commit

Permalink
Fix music mixing crash that can occur under the right conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 14, 2011
1 parent d632910 commit 7fd6247
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions music.c
Expand Up @@ -1218,6 +1218,11 @@ int Mix_PausedMusic(void)
static int music_internal_playing()
{
int playing = 1;

if (music_playing == NULL) {
return 0;
}

switch (music_playing->type) {
#ifdef CMD_MUSIC
case MUS_CMD:
Expand Down

0 comments on commit 7fd6247

Please sign in to comment.