Don't pass a NULL pointer to cdAudio_OpenTrack

This should fix bug #11879

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5328 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-06-25 14:00:20 +00:00
parent 9fcaf6c08f
commit da0b168df3
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ BOOL cdAudio_PlayTrack(SONG_CONTEXT context)
{
const char *filename = PlayList_CurrentSong();
if (filename == NULL)
return false;
return cdAudio_OpenTrack(filename);
}
}