diff options
Diffstat (limited to 'lyt/binaryfile.cpp')
-rw-r--r-- | lyt/binaryfile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lyt/binaryfile.cpp b/lyt/binaryfile.cpp index 26ca8a0..b040bb6 100644 --- a/lyt/binaryfile.cpp +++ b/lyt/binaryfile.cpp @@ -28,14 +28,15 @@ LYTBinaryFile::LYTBinaryFile(QByteArray data) : magic(0), version(0) { QDataStream reader(data); InitDataStream(reader); - quint16 endian, firstSectionOffset, sectionCount; + quint16 endian, firstSectionOffset; + quint32 sectionCount; quint32 fileSize; reader >> this->magic.value; reader >> endian; + reader >> firstSectionOffset; reader >> this->version.value; reader >> fileSize; - reader >> firstSectionOffset; reader >> sectionCount; LYTBinaryFileSection section; |