madden-franchise 3.7.1 → 3.7.2

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.
@@ -149,7 +149,7 @@ class FranchiseFileField {
149
149
  // return (formatted == 1 || (formatted.toString().toLowerCase() == 'true')) ? '1' : '0';
150
150
  actualValue = (value == 1 || (value.toString().toLowerCase() == 'true'));
151
151
  this._value = actualValue;
152
- this._unformattedValue.setBits(this.offset.offset, actualValue, 1);
152
+ this._unformattedValue.setBits(this.offset.offset + (this.offset.length - 1), actualValue, 1);
153
153
  break;
154
154
  case 'float':
155
155
  actualValue = parseFloat(value);
@@ -299,7 +299,7 @@ class FranchiseFileField {
299
299
  }
300
300
  }
301
301
  case 'bool':
302
- return unformatted.getBits(offset.offset, 1) ? true : false;
302
+ return unformatted.getBits(offset.offset + (offset.length - 1), 1) ? true : false;
303
303
  case 'float':
304
304
  // return utilService.bin2Float(unformatted);
305
305
  return unformatted.getFloat32(offset.offset, offset.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madden-franchise",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "Tools to read a madden franchise file and get data from it",
5
5
  "main": "FranchiseFile.js",
6
6
  "scripts": {