@rhyster/wow-casc-dbc 2.9.12 → 2.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1286,7 +1286,8 @@ class WDCReader {
1286
1286
  sectionPointer === sectionHeader.fileOffset,
1287
1287
  `Invalid section offset: ${sectionPointer.toString()} != ${sectionHeader.fileOffset.toString()}`
1288
1288
  );
1289
- const sectionSize = (isNormal ? sectionHeader.recordCount * recordSize + sectionHeader.stringTableSize : sectionHeader.offsetRecordsEnd - sectionPointer) + sectionHeader.idListSize + sectionHeader.copyTableCount * 8 + sectionHeader.offsetMapIDCount * 10 + sectionHeader.relationshipDataSize;
1289
+ const sectionRecordSize = isNormal ? sectionHeader.recordCount * recordSize + sectionHeader.stringTableSize : sectionHeader.offsetRecordsEnd - sectionPointer;
1290
+ const sectionSize = sectionRecordSize + sectionHeader.idListSize + sectionHeader.copyTableCount * 8 + sectionHeader.offsetMapIDCount * 10 + sectionHeader.relationshipDataSize;
1290
1291
  const recordDataSize = isNormal ? recordSize * sectionHeader.recordCount : sectionHeader.offsetRecordsEnd - sectionHeader.fileOffset;
1291
1292
  const isZeroed = blocks.some((block) => {
1292
1293
  const sectionStart = sectionHeader.fileOffset;