madden-franchise 2.2.5 → 2.2.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
|
@@ -28,7 +28,7 @@ class FranchiseFileRecord extends EventEmitter {
|
|
|
28
28
|
|
|
29
29
|
// NOTE: At this time, we can only change the size of arrays of references.
|
|
30
30
|
// I'm not sure how to change the size of non-reference arrays, or if it's even possible.
|
|
31
|
-
if (that.arraySize) {
|
|
31
|
+
if (that.arraySize !== null && that.arraySize !== undefined) {
|
|
32
32
|
const referenceData = this.referenceData;
|
|
33
33
|
|
|
34
34
|
// If the field is outside of the previous array size and was edited to a valid reference,
|
package/FranchiseFileTable.js
CHANGED
|
@@ -32,8 +32,8 @@ class FranchiseFileTable extends EventEmitter {
|
|
|
32
32
|
let currentOffset = 0;
|
|
33
33
|
let bufferArrays = [];
|
|
34
34
|
|
|
35
|
-
// Add all of the array sizes to the buffer if the table is an array
|
|
36
|
-
if (this.isArray) {
|
|
35
|
+
// Add all of the array sizes to the buffer if the table is an array and had a change
|
|
36
|
+
if (this.isArray && changedRecords.length > 0) {
|
|
37
37
|
// Push the header data
|
|
38
38
|
bufferArrays.push(this.data.slice(currentOffset, this.header.headerSize));
|
|
39
39
|
|