From 2aa2076cebe35ce4c53ada6f2b6528c1fecb1586 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Thu, 26 Jun 2003 15:25:06 +0000 Subject: Count CD tracks from the beginning, not the end... ^^;; svn-id: r8656 --- backends/dc/dcmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') 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]); -- cgit v1.2.3