mirror of
https://github.com/ppy/osu
synced 2024-12-13 10:28:17 +00:00
check if dimLevel is null on exit
This commit is contained in:
parent
7f9ad9adf0
commit
09f9f86b06
@ -158,7 +158,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
protected override bool OnExiting(GameMode next)
|
||||
{
|
||||
dimLevel.ValueChanged -= dimChanged;
|
||||
if(dimLevel != null)
|
||||
dimLevel.ValueChanged -= dimChanged;
|
||||
Background?.FadeTo(1f, 200);
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user