From 836e9b9c75f8ed7c45cd4df58c37011c2041ddcf Mon Sep 17 00:00:00 2001 From: nehalmistry <> Date: Mon, 17 Feb 2003 02:35:37 +0000 Subject: [PATCH] fixed crash for using no-cd playlist --- src/sound/music.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/music.cpp b/src/sound/music.cpp index f211f2ee7..65da581bd 100644 --- a/src/sound/music.cpp +++ b/src/sound/music.cpp @@ -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) {