1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Handle the null case

This commit is contained in:
Dean Herbert 2018-11-26 16:50:41 +09:00
parent 87da7b05a6
commit 626048038c

View File

@ -111,7 +111,7 @@ namespace osu.Game.Screens.Menu
this.game = game;
isIdle.ValueChanged += updateIdleState;
isIdle.BindTo(idleTracker.IsIdle);
if (idleTracker != null) isIdle.BindTo(idleTracker.IsIdle);
sampleBack = audio.Sample.Get(@"Menu/button-back-select");
}