From 5a6c1769f28dae1e6f417b00ba8d7f2fab1c099e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 17 May 2009 06:36:17 +0000 Subject: mpq-file reading fix. --- mpq-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpq-file.c b/mpq-file.c index 70b987b..174892b 100644 --- a/mpq-file.c +++ b/mpq-file.c @@ -197,7 +197,7 @@ uint32_t mpqlib_read(struct mpq_file_t * mpq_f, void * _buffer, uint32_t size) { if (sector_begin == sector_end) { memcpy(buffer, mpq_f->buffer + first_sector_begins, size); mpq_f->cursor += size; - return_size = size; + return_size += size; break; } -- cgit v1.2.3