@rhyster/wow-casc-dbc 2.9.11 → 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.mjs CHANGED
@@ -1436,7 +1436,10 @@ class WDCReader {
1436
1436
  };
1437
1437
  }
1438
1438
  case "commonData": {
1439
- const value = (recordID !== undefined ? commonData.get(fieldIndex)?.get(recordID) : undefined) ?? fieldInfo.defaultValue;
1439
+ let value = recordID !== undefined ? commonData.get(fieldIndex)?.get(recordID) : undefined;
1440
+ if (value === undefined) {
1441
+ value = fieldInfo.defaultValue;
1442
+ }
1440
1443
  return {
1441
1444
  type: "commonData",
1442
1445
  data: value