1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Some more code cleanup

This commit is contained in:
Martin Tůma 2020-09-26 19:05:35 +02:00
parent 7c90174751
commit a09a58eece

View File

@ -527,9 +527,7 @@ bool NODFile::linkType(Handle &hdl, const BlockInfo &blockInfo, quint8 linkId,
} while (low + 1 < high);
}
if (!seek(hdl, offset + _blockRecordSize * low))
return false;
if (!readUInt16(hdl, val))
if (!(seek(hdl, offset + _blockRecordSize * low) && readUInt16(hdl, val)))
return false;
type = val & 0x3f;