madden-franchise 2.3.8 → 2.3.9

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,8 +149,13 @@ class FranchiseFileTable extends EventEmitter {
149
149
  + `The nextRecordToUse has NOT been updated.`);
150
150
  }
151
151
  else {
152
- const nextRecordToUse = unreachableRecords[0];
153
- this._setNextRecordToUseBuffer(nextRecordToUse.index);
152
+ let nextRecordToUse = this.header.recordCapacity;
153
+
154
+ if (unreachableRecords.length === 1) {
155
+ nextRecordToUse = unreachableRecords[0].index;
156
+ }
157
+
158
+ this._setNextRecordToUseBuffer(nextRecordToUse);
154
159
  this.emptyRecords = this._parseEmptyRecords();
155
160
  }
156
161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madden-franchise",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "Tools to read a madden franchise file and get data from it",
5
5
  "main": "FranchiseFile.js",
6
6
  "scripts": {