@rhyster/wow-casc-dbc 2.9.12 → 2.9.13
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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/wdc.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/wdc.ts +4 -2
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
|
|
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;
|