fixed crash for using no-cd playlist
This commit is contained in:
parent
4e0f8baa61
commit
836e9b9c75
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue