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:
parent
48f93adb53
commit
fa711a6456
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user