mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Fix out of bounds
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
@ -201,7 +202,7 @@ namespace osu.Game.Overlays.Music
|
||||
max = m - 1;
|
||||
}
|
||||
|
||||
return (int)items[min - 1].Depth;
|
||||
return (int)items[Math.Max(0, min - 1)].Depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user