CDROM: Fix incorrect sector dropped log message

This commit is contained in:
Stenzek 2024-06-13 18:32:58 +10:00
parent 9a88cbce09
commit 8124fb2ef5
No known key found for this signature in database

View File

@ -2982,7 +2982,7 @@ ALWAYS_INLINE_RELEASE void CDROM::ProcessDataSector(const u8* raw_sector, const
// TODO: How does XA relate to this buffering?
SectorBuffer* sb = &s_sector_buffers[sb_num];
if (sb->position == 0)
if (sb->position == 0 && sb->size == 0)
{
DEV_LOG("Sector buffer {} was not read, previous sector dropped",
(s_current_write_sector_buffer - 1) % NUM_SECTOR_BUFFERS);