diff options
Diffstat (limited to 'mpq-file.c')
-rw-r--r-- | mpq-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ static int cache_sector(struct mpq_file_t * mpq_f, int sector) { if (mpq_f->current_sector != sector) { int il, ol; mpqlib_ioctl(mpq_f->mpq_a, MPQLIB_IOCTL_SEEK, mpq_f->offsets[sector]); - mpqlib_ioctl(mpq_f->mpq_a, MPQLIB_IOCTL_READ, mpq_f->sizes[sector]); + mpqlib_ioctl(mpq_f->mpq_a, MPQLIB_IOCTL_READ, in_buf, mpq_f->sizes[sector]); mpq_f->current_sector = sector; il = ol = sector == (mpq_f->number_of_sectors - 1) ? mpq_f->remaining_bytes : mpq_f->sector_size; |