mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Move call inside conditional
This commit is contained in:
@ -519,9 +519,12 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
// there is a chance that the exit was performed after the transition to results has started.
|
// 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).
|
// 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;
|
ValidForResume = false;
|
||||||
|
|
||||||
|
// in the potential case that this instance has already been exited, this is required to avoid a crash.
|
||||||
|
if (this.GetChildScreen() != null)
|
||||||
this.MakeCurrent();
|
this.MakeCurrent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user