Skip to content

Commit

Permalink
Fixed crash playing WAVE music
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 21, 2017
1 parent 67a9fc8 commit c830429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_wav.c
Expand Up @@ -135,6 +135,7 @@ static void *WAV_CreateFromRW(SDL_RWops *src, int freesrc)
SDL_OutOfMemory();
return NULL;
}
music->src = src;
music->volume = MIX_MAX_VOLUME;

magic = SDL_ReadLE32(src);
Expand Down Expand Up @@ -162,7 +163,6 @@ static void *WAV_CreateFromRW(SDL_RWops *src, int freesrc)
return NULL;
}

music->src = src;
music->freesrc = freesrc;
return music;
}
Expand Down

0 comments on commit c830429

Please sign in to comment.