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