mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
Move IsLoaded check to more correct place
This commit is contained in:
parent
a2e3ab6463
commit
40a33b3382
@ -40,7 +40,8 @@ namespace osu.Game.Screens.Play
|
|||||||
isBreakTime.Value = false;
|
isBreakTime.Value = false;
|
||||||
CurrentBreakIndex = 0;
|
CurrentBreakIndex = 0;
|
||||||
|
|
||||||
initializeBreaks();
|
if (IsLoaded)
|
||||||
|
initializeBreaks();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,8 +163,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private void initializeBreaks()
|
private void initializeBreaks()
|
||||||
{
|
{
|
||||||
if (!IsLoaded) return; // we need a clock.
|
|
||||||
|
|
||||||
FinishTransforms(true);
|
FinishTransforms(true);
|
||||||
Scheduler.CancelDelayedTasks();
|
Scheduler.CancelDelayedTasks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user