1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Merge pull request #18528 from peppy/fix-add-new-timing-crash

Fix timing screen crash when attempting to add group to self
This commit is contained in:
Bartłomiej Dach 2022-06-03 00:45:32 +02:00 committed by GitHub
commit 6dd62673d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{