mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 07:12:12 +08:00
Extra guard against no attributes
This commit is contained in:
@@ -70,7 +70,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
private void onNewJudgement(JudgementResult judgement)
|
||||
{
|
||||
if (player == null)
|
||||
if (player == null || timedAttributes.Length == 0)
|
||||
return;
|
||||
|
||||
var attribIndex = Array.BinarySearch(timedAttributes, 0, timedAttributes.Length, new TimedDifficultyAttributes(judgement.HitObject.GetEndTime(), null));
|
||||
|
||||
Reference in New Issue
Block a user