1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 17:02:55 +08:00

Extra guard against no attributes

This commit is contained in:
smoogipoo 2021-10-01 21:31:26 +09:00
parent a1f880a36a
commit 0ee148b53f

View File

@ -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));