@rhyster/wow-casc-dbc 2.11.8 → 2.11.10
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.cjs
CHANGED
|
@@ -1449,13 +1449,10 @@ class WDCReader {
|
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
case "commonData": {
|
|
1452
|
-
|
|
1453
|
-
if (value === void 0) {
|
|
1454
|
-
value = fieldInfo.defaultValue;
|
|
1455
|
-
}
|
|
1452
|
+
const value = recordID !== void 0 ? commonData.get(fieldIndex)?.get(recordID) : void 0;
|
|
1456
1453
|
return {
|
|
1457
1454
|
type: "commonData",
|
|
1458
|
-
data: value
|
|
1455
|
+
data: value ?? fieldInfo.defaultValue
|
|
1459
1456
|
};
|
|
1460
1457
|
}
|
|
1461
1458
|
case "bitpacked":
|