From cd915a32bef6b2f8bead9b4d6007528c21011b93 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Fri, 31 Mar 2017 11:58:24 +0900 Subject: [PATCH] Let's use a List for now. --- osu.Game/Modes/Scoring/ScoreProcessor.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osu.Game/Modes/Scoring/ScoreProcessor.cs b/osu.Game/Modes/Scoring/ScoreProcessor.cs index 314d4fa194..4c42f2a384 100644 --- a/osu.Game/Modes/Scoring/ScoreProcessor.cs +++ b/osu.Game/Modes/Scoring/ScoreProcessor.cs @@ -110,7 +110,7 @@ namespace osu.Game.Modes.Scoring /// /// All judgements held by this ScoreProcessor. /// - protected readonly HashSet Judgements = new HashSet(); + protected readonly List Judgements = new List(); public override bool HasFailed => Health.Value == Health.MinValue; @@ -139,9 +139,13 @@ namespace osu.Game.Modes.Scoring /// The judgement to add. protected void AddJudgement(TJudgement judgement) { - if (Judgements.Add(judgement)) + bool exists = Judgements.Contains(judgement); + + if (!exists) { + Judgements.Add(judgement); OnNewJudgement(judgement); + judgement.ComboAtHit = Combo.Value; } else