diff --git a/src/map/IMG/netfile.cpp b/src/map/IMG/netfile.cpp index 46072d7f..757e95a5 100644 --- a/src/map/IMG/netfile.cpp +++ b/src/map/IMG/netfile.cpp @@ -238,12 +238,12 @@ bool NETFile::readShape(const NODFile *nod, SubFile::Handle &nodHdl, if (!stream.readNext(lonDelta, latDelta)) break; - if (!(lonDelta | latDelta) && !startWithStream) - break; - if (hasAdjustBit && !stream.read(1, adjustBit)) return false; + if (!(lonDelta | latDelta) && !startWithStream && !hasAdjustBit) + break; + stepsCnt++; if (useEosBit) {