diff --git a/src/engine/fileOpsIns.cpp b/src/engine/fileOpsIns.cpp index b26cc67d..4f08fea6 100644 --- a/src/engine/fileOpsIns.cpp +++ b/src/engine/fileOpsIns.cpp @@ -1201,6 +1201,7 @@ void DivEngine::loadGYB(SafeReader& reader, std::vector& ret, St if (!reader.seek(patchPosOffset + patchSize, SEEK_SET)) { throw EndOfFileException(&reader, patchPosOffset + patchSize); } + patchPosOffset = reader.tell(); } } reader.seek(0, SEEK_END);