mirror of
https://github.com/ppy/osu
synced 2024-12-26 00:32:52 +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