mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Move call inside conditional
This commit is contained in:
parent
a69a1b5211
commit
100e2d14a5
@ -519,10 +519,13 @@ 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() && this.GetChildScreen() != null)
|
||||
if (!this.IsCurrentScreen())
|
||||
{
|
||||
ValidForResume = false;
|
||||
this.MakeCurrent();
|
||||
|
||||
// in the potential case that this instance has already been exited, this is required to avoid a crash.
|
||||
if (this.GetChildScreen() != null)
|
||||
this.MakeCurrent();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user