mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Merge pull request #12922 from peppy/fix-bad-make-current-call
Fix `Player` potentially running `MakeCurrent` when already removed from the screen stack
This commit is contained in:
commit
8dce147b8a
@ -522,6 +522,9 @@ namespace osu.Game.Screens.Play
|
||||
if (!this.IsCurrentScreen())
|
||||
{
|
||||
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();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user