@rhyster/wow-casc-dbc 2.11.9 → 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.mjs CHANGED
@@ -1437,13 +1437,10 @@ class WDCReader {
1437
1437
  };
1438
1438
  }
1439
1439
  case "commonData": {
1440
- let value = recordID !== void 0 ? commonData.get(fieldIndex)?.get(recordID) : void 0;
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":