Skip to content

Commit

Permalink
Fixed bug that caused index spill error
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebRose committed May 16, 2024
1 parent b3f68f6 commit be7264c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions managers/GameplanManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3276,6 +3276,9 @@ func CheckForSchemePenalties() {
teamID := strconv.Itoa(int(t.ID))
teamStats := GetHistoricalTeamStats(teamID, seasonID)
lastStatsIdx := len(teamStats) - 1
if lastStatsIdx < 0 || t.ID > 194 {
continue
}
offScheme := teamStats[lastStatsIdx].OffensiveScheme
defScheme := teamStats[lastStatsIdx].DefensiveScheme
diff := ts.CollegeWeekID - teamStats[lastStatsIdx].WeekID
Expand Down

0 comments on commit be7264c

Please sign in to comment.