Merge pull request #262 from n4b3l/dimlevel-bug

check if dimLevel is null on exit player
This commit is contained in:
Thomas Müller 2016-12-19 17:15:41 +01:00 committed by GitHub
commit f674617f1f

View File

@ -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()