Skip to content

Commit

Permalink
Fix: Pp calculator failing to initalize in some rare cases
Browse files Browse the repository at this point in the history
quite a few of these in error tracker but I can't reproduce myself
  • Loading branch information
Piotrekol committed Jun 17, 2023
1 parent 591ba94 commit fcd62a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PpCalculator/PpCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected int GetComboFromTime(IBeatmap beatmap, int fromTime)
private void PreparePlayableBeatmap(CancellationToken cancellationToken)
{
var newMods = _Mods != null ? string.Concat(_Mods) : "";
if (LastMods != newMods || ResetPerformanceCalculator)
if (LastMods != newMods || ResetPerformanceCalculator || _playableBeatmap == null)
{
var mods = GetOsuMods(Ruleset).Select(m => m.CreateInstance()).Append(Ruleset.AllMods.First(m => m.Acronym == "CL").CreateInstance()).ToArray();

Expand Down

0 comments on commit fcd62a0

Please sign in to comment.