Move call inside conditional

This commit is contained in:
Dean Herbert 2021-05-24 15:14:55 +09:00
parent a69a1b5211
commit 100e2d14a5

View File

@ -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;
}