1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:23:22 +08:00

Merge pull request #5498 from nyquillerium/exit-multi-from-null

Fix Multiplayer crash if attempting to exit with no screens in inner screen stack
This commit is contained in:
Dan Balasescu 2019-07-29 14:51:43 +09:00 committed by GitHub
commit 2318402292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ namespace osu.Game.Screens.Multi
public override bool OnExiting(IScreen next)
{
if (!(screenStack.CurrentScreen is LoungeSubScreen))
if (screenStack.CurrentScreen != null && !(screenStack.CurrentScreen is LoungeSubScreen))
{
screenStack.Exit();
return true;