mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Fix possible nullref.
This commit is contained in:
@ -73,7 +73,7 @@ namespace osu.Game.Modes
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// All judgements held by this ScoreProcessor.
|
/// All judgements held by this ScoreProcessor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected List<TJudgement> Judgements;
|
protected readonly List<TJudgement> Judgements = new List<TJudgement>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the score is in a failable state.
|
/// Whether the score is in a failable state.
|
||||||
@ -95,7 +95,7 @@ namespace osu.Game.Modes
|
|||||||
protected ScoreProcessor(HitRenderer<TObject, TJudgement> hitRenderer)
|
protected ScoreProcessor(HitRenderer<TObject, TJudgement> hitRenderer)
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
Judgements = new List<TJudgement>(hitRenderer.Beatmap.HitObjects.Count);
|
Judgements.Capacity = hitRenderer.Beatmap.HitObjects.Count;
|
||||||
hitRenderer.OnJudgement += addJudgement;
|
hitRenderer.OnJudgement += addJudgement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user