diff --git a/src/map/ENC/iso8211.cpp b/src/map/ENC/iso8211.cpp index 05d809ae..279ffded 100644 --- a/src/map/ENC/iso8211.cpp +++ b/src/map/ENC/iso8211.cpp @@ -97,6 +97,7 @@ int ISO8211::readDR(QFile &file, QVector &fields) const QByteArray fieldLen, fieldPos; int len, lenSize, posSize, tagSize, offset; + static_assert(sizeof(ddr) == 24, "Invalid DR alignment"); if (file.read((char*)&ddr, sizeof(ddr)) != sizeof(ddr)) return -1;