From 07581f027b51bd3afe59b896c4c0feb26684e29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 16 Mar 2023 20:58:28 +0100 Subject: [PATCH] Fixed header length check --- src/map/IMG/rgnfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index 9222e2dc..617b50d2 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -217,7 +217,7 @@ bool RGNFile::load(Handle &hdl) && readUInt32(hdl, _base.size))) return false; - if (hdrLen >= 0x68) { + if (hdrLen >= 0x71) { if (!(readUInt32(hdl, _polygons.offset) && readUInt32(hdl, _polygons.size) && seek(hdl, _gmpOffset + 0x29) && readUInt32(hdl, _polygonsGblFlags) && readUInt32(hdl, _polygonsLclFlags[0])