From 7764474cfeaa7fda32dbd8d1bb1a6f92ebe28463 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 16 Mar 2017 13:49:16 +0900 Subject: [PATCH] Fix possible nullref. --- osu.Game/Modes/ScoreProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Modes/ScoreProcessor.cs b/osu.Game/Modes/ScoreProcessor.cs index d042864f7d..3900a79485 100644 --- a/osu.Game/Modes/ScoreProcessor.cs +++ b/osu.Game/Modes/ScoreProcessor.cs @@ -73,7 +73,7 @@ namespace osu.Game.Modes /// /// All judgements held by this ScoreProcessor. /// - protected List Judgements; + protected readonly List Judgements = new List(); /// /// Whether the score is in a failable state. @@ -95,7 +95,7 @@ namespace osu.Game.Modes protected ScoreProcessor(HitRenderer hitRenderer) : this() { - Judgements = new List(hitRenderer.Beatmap.HitObjects.Count); + Judgements.Capacity = hitRenderer.Beatmap.HitObjects.Count; hitRenderer.OnJudgement += addJudgement; }