1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 10:07:36 +08:00

Fix timing screen crash when attempting to add group to self

Closes #18527.
This commit is contained in:
Dean Herbert 2022-06-02 18:14:26 +09:00
parent c06045f41f
commit 5a0f716bf2

View File

@ -189,7 +189,7 @@ namespace osu.Game.Screens.Edit.Timing
// Try and create matching types from the currently selected control point.
var selected = selectedGroup.Value;
if (selected != null)
if (selected != null && selected != group)
{
foreach (var controlPoint in selected.ControlPoints)
{