From f07b9591cd8d525b1d952aac41277b0c16c5c79f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 20 Jan 2017 16:20:56 +0800 Subject: [PATCH] Add null check when popping backgrounds from the mode stack. --- osu.Game/Screens/OsuGameMode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Screens/OsuGameMode.cs b/osu.Game/Screens/OsuGameMode.cs index b5e45f2097..b938a450f8 100644 --- a/osu.Game/Screens/OsuGameMode.cs +++ b/osu.Game/Screens/OsuGameMode.cs @@ -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(); }