Fix const-ness in songs_play_file

This commit is contained in:
Kp 2013-10-06 03:04:43 +00:00
parent a36c7dee08
commit 643fdbc08b

View file

@ -317,10 +317,9 @@ static void play_credits_track()
// play a filename as music, depending on filename extension.
int songs_play_file(const char *filename, int repeat, void (*hook_finished_track)())
{
char *fptr = strrchr(filename, '.');
songs_stop_all();
const char *fptr = strrchr(filename, '.');
if (fptr == NULL)
return 0;