mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 14:17:06 +09:00
Add null check when popping backgrounds from the mode stack.
This commit is contained in:
@ -130,7 +130,7 @@ namespace osu.Game.Screens
|
||||
{
|
||||
if (nextOsu != null)
|
||||
//We need to use MakeCurrent in case we are jumping up multiple game modes.
|
||||
nextOsu.Background.MakeCurrent();
|
||||
nextOsu.Background?.MakeCurrent();
|
||||
else
|
||||
Background.Exit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user