fixed crash for using no-cd playlist

This commit is contained in:
nehalmistry 2003-02-17 02:35:37 +00:00
parent 4e0f8baa61
commit 836e9b9c75

View file

@ -497,7 +497,7 @@ global void PlaySectionMusic(PlaySectionType section)
}
}
if (CDMode != CDModeStopped && CDMode != CDModeOff) {
if (CDMode == CDModeDefined) {
if ( (1 << track) & PlaySections[i].CDTracks ) {
newtrack = 0;
} else {
@ -519,7 +519,7 @@ global void PlaySectionMusic(PlaySectionType section)
if (newtrack) {
cd_play(newtrack);
}
} else {
} else if (PlaySections[i].Files && (CDMode == CDModeOff || CDMode == CDModeStopped)) {
found = 0;
numfiles = 0;
for (j = 0; PlaySections[i].Files[j] && !found; ++j) {