1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Fix potential nullref

This commit is contained in:
smoogipoo 2019-11-06 12:45:35 +09:00
parent 7cd4cb8a93
commit 322a1f0a86

View File

@ -47,7 +47,11 @@ namespace osu.Game.Screens.Edit.Timing
{
base.LoadComplete();
selectedGroup.BindValueChanged(selected => { clock.Seek(selected.NewValue.Time); });
selectedGroup.BindValueChanged(selected =>
{
if (selected.NewValue != null)
clock.Seek(selected.NewValue.Time);
});
}
public class ControlPointList : CompositeDrawable