GzippedFileReader: Don't clamp chunkID on read

This commit is contained in:
Stenzek 2024-05-18 01:35:50 +10:00 committed by Connor McLaughlin
parent 34ae500614
commit 31e935d831
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ ThreadedFileReader::Chunk GzippedFileReader::ChunkForOffset(u64 offset)
int GzippedFileReader::ReadChunk(void* dst, s64 chunkID)
{
if (chunkID < 0 || chunkID >= m_index->size)
if (chunkID < 0)
return -1;
const s64 file_offset = chunkID * m_index->span;