mirror of
https://github.com/ppy/osu
synced 2024-12-26 17:02:59 +00:00
Merge pull request #262 from n4b3l/dimlevel-bug
check if dimLevel is null on exit player
This commit is contained in:
commit
f674617f1f
@ -50,6 +50,7 @@ namespace osu.Game.Screens.Play
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(AudioManager audio, BeatmapDatabase beatmaps, OsuGameBase game)
|
||||
{
|
||||
dimLevel = game.Config.GetBindable<int>(OsuConfig.DimLevel);
|
||||
try
|
||||
{
|
||||
if (Beatmap == null)
|
||||
@ -114,7 +115,6 @@ namespace osu.Game.Screens.Play
|
||||
},
|
||||
scoreOverlay,
|
||||
};
|
||||
dimLevel = game.Config.GetBindable<int>(OsuConfig.DimLevel);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
Loading…
Reference in New Issue
Block a user