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:
parent
60c0428979
commit
5c741eaa89
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user