1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 02:25:29 +08:00

Fix possible idleTracker nullref

This commit is contained in:
Roman Kapustin
2018-09-26 19:44:01 +03:00
Unverified
parent bdba22a576
commit baf9e028c3
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ using osu.Framework.Input.Bindings;
using osu.Framework.Logging;
using osu.Framework.Threading;
using osu.Game.Graphics;
using osu.Game.Input;
using osu.Game.Input.Bindings;
using osu.Game.Overlays;
using OpenTK;
@@ -269,7 +270,7 @@ namespace osu.Game.Screens.Menu
protected override void Update()
{
if (idleTracker.IdleTime > 6000 && State != ButtonSystemState.Exit)
if (idleTracker?.IdleTime > 6000 && State != ButtonSystemState.Exit)
State = ButtonSystemState.Initial;
base.Update();