diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index 8e7fefa4..86c550bf 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -425,7 +425,7 @@ QMap RGNFile::segments(Handle &hdl, quint32 ls = 0; SegmentType lt = (SegmentType)0; - for (quint16 mask = 0x1; mask <= 0x10; mask <<= 1) { + for (quint8 mask = 0x1; mask <= 0x10; mask <<= 1) { if (subdiv->objects() & mask) { if (ls) { quint16 po;