@rhyster/wow-casc-dbc 2.11.9 → 2.11.11
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 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/dist/wdc.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/wdc.ts +2 -5
package/dist/index.mjs
CHANGED
|
@@ -1437,13 +1437,10 @@ class WDCReader {
|
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
1439
|
case "commonData": {
|
|
1440
|
-
|
|
1441
|
-
if (value === void 0) {
|
|
1442
|
-
value = fieldInfo.defaultValue;
|
|
1443
|
-
}
|
|
1440
|
+
const value = recordID !== void 0 ? commonData.get(fieldIndex)?.get(recordID) : void 0;
|
|
1444
1441
|
return {
|
|
1445
1442
|
type: "commonData",
|
|
1446
|
-
data: value
|
|
1443
|
+
data: value ?? fieldInfo.defaultValue
|
|
1447
1444
|
};
|
|
1448
1445
|
}
|
|
1449
1446
|
case "bitpacked":
|