@rhyster/wow-casc-dbc 2.9.10 → 2.9.12

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 CHANGED
@@ -1448,7 +1448,10 @@ class WDCReader {
1448
1448
  };
1449
1449
  }
1450
1450
  case "commonData": {
1451
- const value = (recordID !== undefined ? commonData.get(fieldIndex)?.get(recordID) : undefined) ?? fieldInfo.defaultValue;
1451
+ let value = recordID !== undefined ? commonData.get(fieldIndex)?.get(recordID) : undefined;
1452
+ if (value === undefined) {
1453
+ value = fieldInfo.defaultValue;
1454
+ }
1452
1455
  return {
1453
1456
  type: "commonData",
1454
1457
  data: value