Skip to content

Commit 31f2847

Browse files
Merge branch 'Quaver:master' into optimise-diffcalc-bin
2 parents 562e412 + d766e81 commit 31f2847

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Quaver.API/Maps/Processors/Difficulty/Rulesets/Keys/DifficultyProcessorKeys.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,10 @@ private void ComputeForPatternFlags()
541541
/// <returns></returns>
542542
private float CalculateOverallDifficulty()
543543
{
544+
// When the map has only scratch key notes, StrainSolverData would be empty, so we return 0
545+
if (StrainSolverData.Count == 0)
546+
return 0;
547+
544548
float calculatedDiff;
545549

546550
// Solve strain value of every data point

0 commit comments

Comments
 (0)