madden-franchise 2.3.5 → 2.3.6
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/FranchiseFileRecord.js +1 -1
- package/FranchiseFileTable.js +2 -2
- package/package.json +1 -1
package/FranchiseFileRecord.js
CHANGED
|
@@ -68,7 +68,7 @@ class FranchiseFileRecord extends EventEmitter {
|
|
|
68
68
|
|
|
69
69
|
this._fields.forEach((field) => {
|
|
70
70
|
const unformattedValue = data.slice(field.offset.offset, field.offset.offset + field.offset.length);
|
|
71
|
-
field.setUnformattedValueWithoutChangeEvent(unformattedValue
|
|
71
|
+
field.setUnformattedValueWithoutChangeEvent(unformattedValue);
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
74
|
|
package/FranchiseFileTable.js
CHANGED
|
@@ -323,7 +323,7 @@ class FranchiseFileTable extends EventEmitter {
|
|
|
323
323
|
function setBufferToEmptyRecordReference(index, emptyRecordReference) {
|
|
324
324
|
const recordStartIndex = that.header.table1StartIndex + (index * that.header.record1Size)
|
|
325
325
|
that.data.writeUInt32BE(emptyRecordReference, recordStartIndex);
|
|
326
|
-
that.data.fill(0, recordStartIndex + 4, recordStartIndex + that.header.record1Size);
|
|
326
|
+
// that.data.fill(0, recordStartIndex + 4, recordStartIndex + that.header.record1Size);
|
|
327
327
|
};
|
|
328
328
|
|
|
329
329
|
function setRecordInternalBuffer(index, emptyRecordReference) {
|
|
@@ -331,7 +331,7 @@ class FranchiseFileTable extends EventEmitter {
|
|
|
331
331
|
|
|
332
332
|
const recordSizeInBits = that.header.record1Size * 8;
|
|
333
333
|
if (recordSizeInBits > 32) {
|
|
334
|
-
newData +=
|
|
334
|
+
newData += that.records[index]._data.slice(32);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
that.records[index].data = newData;
|