mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
Fix potential null reference in player screen transition handling
See https://github.com/ppy/osu/actions/runs/7607677219/job/20715418536?pr=26660.
This commit is contained in:
parent
2262c34178
commit
3e5fe66e58
@ -1240,9 +1240,14 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
b.IgnoreUserSettings.Value = true;
|
||||
|
||||
// May be null if the load never completed.
|
||||
if (breakTracker != null)
|
||||
{
|
||||
b.IsBreakTime.UnbindFrom(breakTracker.IsBreakTime);
|
||||
b.IsBreakTime.Value = false;
|
||||
}
|
||||
});
|
||||
|
||||
storyboardReplacesBackground.Value = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user