1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Fix possible game nullref

This commit is contained in:
Roman Kapustin 2018-09-21 17:07:46 +03:00
parent 60c0428979
commit 5c741eaa89

View File

@ -266,7 +266,7 @@ namespace osu.Game.Screens.Menu
protected override void Update()
{
if (game.IdleTime > 6000 && State != ButtonSystemState.Exit)
if (game?.IdleTime > 6000 && State != ButtonSystemState.Exit)
State = ButtonSystemState.Initial;
base.Update();