madden-franchise 2.5.4 → 2.5.5

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/FranchiseFile.js CHANGED
@@ -113,7 +113,7 @@ class FranchiseFile extends EventEmitter {
113
113
 
114
114
  for (let i = 0; i < tableIndicies.length; i++) {
115
115
  const currentTable = tableIndicies[i];
116
- const nextTable = tableIndicies.length >= i+1 ? tableIndicies[i+1] : null;
116
+ const nextTable = tableIndicies.length > i+1 ? tableIndicies[i+1] : this.unpackedFileContents.length - 8; // Ignore trailing 8 bytes on last table
117
117
 
118
118
  const tableData = this.unpackedFileContents.slice(currentTable, nextTable);
119
119
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madden-franchise",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Tools to read a madden franchise file and get data from it",
5
5
  "main": "FranchiseFile.js",
6
6
  "scripts": {