From 7217f9acfcd38aa59186d8c55c200f82a2d1fd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 15 Jan 2021 06:44:31 +0100 Subject: [PATCH] Cosmetics --- src/map/IMG/trefile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/IMG/trefile.cpp b/src/map/IMG/trefile.cpp index a6956e51..ad3e46e5 100644 --- a/src/map/IMG/trefile.cpp +++ b/src/map/IMG/trefile.cpp @@ -139,12 +139,14 @@ int TREFile::readExtEntry(Handle &hdl, quint32 &polygons, quint32 &lines, rb += 4; } else polygons = 0; + if (_flags & 2) { if (!readUInt32(hdl, lines)) return -1; rb += 4; } else lines = 0; + if (_flags & 4) { if (!readUInt32(hdl, points)) return -1;