@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.cjs CHANGED
@@ -1449,13 +1449,10 @@ class WDCReader {
1449
1449
  };
1450
1450
  }
1451
1451
  case "commonData": {
1452
- let value = recordID !== void 0 ? commonData.get(fieldIndex)?.get(recordID) : void 0;
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":