mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
Fix crash when hitting 'T' to tap timing while no timing point is selected
This commit is contained in:
parent
23f91ec717
commit
d146f86511
@ -295,6 +295,9 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
|
||||
private void handleTap()
|
||||
{
|
||||
if (selectedGroup?.Value == null)
|
||||
return;
|
||||
|
||||
tapTimings.Add(Clock.CurrentTime);
|
||||
|
||||
if (tapTimings.Count > initial_taps_to_ignore + max_taps_to_consider)
|
||||
|
@ -183,12 +183,18 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
|
||||
private void start()
|
||||
{
|
||||
if (selectedGroup.Value == null)
|
||||
return;
|
||||
|
||||
editorClock.Seek(selectedGroup.Value.Time);
|
||||
editorClock.Start();
|
||||
}
|
||||
|
||||
private void reset()
|
||||
{
|
||||
if (selectedGroup.Value == null)
|
||||
return;
|
||||
|
||||
editorClock.Stop();
|
||||
editorClock.Seek(selectedGroup.Value.Time);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user