diff options
author | Marcus Comstedt | 2003-06-26 15:25:06 +0000 |
---|---|---|
committer | Marcus Comstedt | 2003-06-26 15:25:06 +0000 |
commit | 2aa2076cebe35ce4c53ada6f2b6528c1fecb1586 (patch) | |
tree | 4ac76a90d8a4263c651e92cd09bff6f47604355a | |
parent | 2f11bb5dd7d88bee1cb683ab4f78ceac8c7a7a93 (diff) | |
download | scummvm-rg350-2aa2076cebe35ce4c53ada6f2b6528c1fecb1586.tar.gz scummvm-rg350-2aa2076cebe35ce4c53ada6f2b6528c1fecb1586.tar.bz2 scummvm-rg350-2aa2076cebe35ce4c53ada6f2b6528c1fecb1586.zip |
Count CD tracks from the beginning, not the end... ^^;;
svn-id: r8656
-rw-r--r-- | backends/dc/dcmain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp index 1bd1679864..55c58c109d 100644 --- a/backends/dc/dcmain.cpp +++ b/backends/dc/dcmain.cpp @@ -63,7 +63,7 @@ static bool find_track(int track, int &first_sec, int &last_sec) last = TOC_TRACK(toc->last); if(first < 1 || last > 99 || first > last) return false; - for(i=last; i>=first; --i) + for(i=first; i<=last; i++) if(!(TOC_CTRL(toc->entry[i-1])&4)) if(track==1) { first_sec = TOC_LBA(toc->entry[i-1]); |