libsdl-org / sdl12-compat

An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes.
Other
191 stars 40 forks source link

cdrom: fix 'no track 1' edge case #325

Closed twolife closed 6 months ago

twolife commented 6 months ago

unless I'm missing something obvious, c is never equal to zero

icculus commented 6 months ago

Yeah, you're right, this is a leftover from when the tracks started at zero, I think.

sezero commented 6 months ago

Issue was introduced in https://github.com/libsdl-org/sdl12-compat/commit/ed299ba1772ee52c58b7817f3997101b5c79ff14 (original check was if (!rw && c > 1) )