diff --git a/Quaver.API/Maps/Processors/Difficulty/Rulesets/Keys/DifficultyProcessorKeys.cs b/Quaver.API/Maps/Processors/Difficulty/Rulesets/Keys/DifficultyProcessorKeys.cs index 56e6c1418..b0935ce0f 100644 --- a/Quaver.API/Maps/Processors/Difficulty/Rulesets/Keys/DifficultyProcessorKeys.cs +++ b/Quaver.API/Maps/Processors/Difficulty/Rulesets/Keys/DifficultyProcessorKeys.cs @@ -541,6 +541,10 @@ private void ComputeForPatternFlags() /// private float CalculateOverallDifficulty() { + // When the map has only scratch key notes, StrainSolverData would be empty, so we return 0 + if (StrainSolverData.Count == 0) + return 0; + float calculatedDiff; // Solve strain value of every data point