Cleanup, don't crash if no play sections are defined

This commit is contained in:
jsalmon3 2003-02-17 01:27:33 +00:00
parent 546315ce03
commit 56619032a7

View file

@ -462,13 +462,24 @@ local int PlayCDRom(const char* name)
}
#endif
/**
** FIXME: docu
*/
global void PlaySectionMusic(PlaySectionType section)
{
int track, newtrack = 0;
int track;
int newtrack;
int i;
int j = 0;
int found, numfiles;
int j;
int found;
int numfiles;
if (NumPlaySections == 0) {
return;
}
newtrack = 0;
j = 0;
track = cd_current_track();
for (i = 0; i < NumPlaySections; ++i) {