1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 21:13:20 +08:00

Fix null reference causing hard freeze if game is forcefully closed during disclaimer

This commit is contained in:
Dean Herbert 2020-05-09 19:11:51 +09:00
parent 48f93adb53
commit fa711a6456

View File

@ -914,7 +914,7 @@ namespace osu.Game
if (ScreenStack.CurrentScreen is Loader)
return false;
if (introScreen.DidLoadMenu && !(ScreenStack.CurrentScreen is IntroScreen))
if (introScreen?.DidLoadMenu == true && !(ScreenStack.CurrentScreen is IntroScreen))
{
Scheduler.Add(introScreen.MakeCurrent);
return true;