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