mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Extra guard against no attributes
This commit is contained in:
parent
a1f880a36a
commit
0ee148b53f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user