mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:42:55 +08:00
Add null check when popping backgrounds from the mode stack.
This commit is contained in:
parent
139cac5e57
commit
f07b9591cd
@ -130,7 +130,7 @@ namespace osu.Game.Screens
|
|||||||
{
|
{
|
||||||
if (nextOsu != null)
|
if (nextOsu != null)
|
||||||
//We need to use MakeCurrent in case we are jumping up multiple game modes.
|
//We need to use MakeCurrent in case we are jumping up multiple game modes.
|
||||||
nextOsu.Background.MakeCurrent();
|
nextOsu.Background?.MakeCurrent();
|
||||||
else
|
else
|
||||||
Background.Exit();
|
Background.Exit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user