cdvdgigaherz: Fix Q subchannel relative offset calculation

The wrong comparison was used, so all the relative offsets were
completely wrong. Fixes the wrong track issue in the CD player.

Regression introduced in f314c2a4d9.
This commit is contained in:
Jonathan Li committed 2017-10-12 23:54:59 +01:00
1 parent 1bcb7eccbc
commit 9be61f83df
1 file changed
+1 -1
+1 -1
View File
@@ -306,7 +306,7 @@ EXPORT s32 CALLBACK CDVDreadSubQ(u32 lsn, cdvdSubQ *subq)
lsn_to_msf(&subq->discM, &subq->discS, &subq->discF, lsn + 150);
u8 i = strack;
while (i < etrack && lsn < tracks[i + 1].start_lba)
while (i < etrack && lsn >= tracks[i + 1].start_lba)
++i;
lsn -= tracks[i].start_lba;