From b9c1c6c6cff8fe1eb2f644b7440727bbc8294fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 3 Feb 2021 22:49:06 +0100 Subject: [PATCH] Fixed block read algorithm --- src/map/IMG/subfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/IMG/subfile.cpp b/src/map/IMG/subfile.cpp index ce1d1373..61131f2c 100644 --- a/src/map/IMG/subfile.cpp +++ b/src/map/IMG/subfile.cpp @@ -123,7 +123,7 @@ bool SubFile::read(Handle &handle, quint8 *buff, quint32 size) const if (size < remaining) { memcpy(buff, handle._data.constData() + handle._blockPos, size); handle._blockPos += size; - handle._pos++; + handle._pos += size; return true; } else { memcpy(buff, handle._data.constData() + handle._blockPos,