mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Fix Player
potentially running MakeCurrent
when already removed from the screen stack
Closes #12919.
This commit is contained in:
parent
babe24ff5d
commit
a69a1b5211
@ -519,7 +519,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
// there is a chance that the exit was performed after the transition to results has started.
|
||||
// we want to give the user what they want, so forcefully return to this screen (to proceed with the upwards exit process).
|
||||
if (!this.IsCurrentScreen())
|
||||
if (!this.IsCurrentScreen() && this.GetChildScreen() != null)
|
||||
{
|
||||
ValidForResume = false;
|
||||
this.MakeCurrent();
|
||||
|
Loading…
Reference in New Issue
Block a user