mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:23:21 +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:
commit
6dd62673d3
@ -189,7 +189,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
// Try and create matching types from the currently selected control point.
|
// Try and create matching types from the currently selected control point.
|
||||||
var selected = selectedGroup.Value;
|
var selected = selectedGroup.Value;
|
||||||
|
|
||||||
if (selected != null)
|
if (selected != null && selected != group)
|
||||||
{
|
{
|
||||||
foreach (var controlPoint in selected.ControlPoints)
|
foreach (var controlPoint in selected.ControlPoints)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user