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.
- package/FranchiseFileField.js +2 -2
- package/package.json +1 -1
package/FranchiseFileField.js
CHANGED
|
@@ -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);
|