1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Merge pull request #11448 from bdach/fix-editor-enter-crash

Fix editor crashing on enter if login overlay was previously opened
This commit is contained in:
Dean Herbert 2021-01-10 12:59:47 +09:00 committed by GitHub
commit e81f9e358e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,11 @@ namespace osu.Game.Screens
private void load(OsuGame osu, AudioManager audio)
{
sampleExit = audio.Samples.Get(@"UI/screen-back");
}
protected override void LoadComplete()
{
base.LoadComplete();
Activity.Value ??= InitialActivity;
}