From a2f1ef7572a0137651da2f80f63aa3d7c6ecb48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 8 Mar 2025 18:06:20 +0100 Subject: [PATCH] Silence MSVC C4018 warnings --- src/map/IMG/rgnfile.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index 495ed69f..28f4cb5b 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -133,9 +133,7 @@ bool RGNFile::readBuoyInfo(Handle &hdl, quint8 flags, quint32 size, bool RGNFile::readLightInfo(Handle &hdl, quint8 flags, quint32 size, MapData::Point *point) const { - quint16 flags1; - quint8 flags2; - quint32 unused; + quint32 flags1, flags2, unused; if (!(size >= 3 && readUInt16(hdl, flags1) && readUInt8(hdl, flags2))) return false;