From a1144636784c7ea3485ef04ae158a048e4e54d10 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 29 Sep 2016 23:52:51 +0900 Subject: [PATCH] Add null check. --- osu.Game/GameModes/GameModeWhiteBox.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/GameModes/GameModeWhiteBox.cs b/osu.Game/GameModes/GameModeWhiteBox.cs index b46987ee1b..8779e46a87 100644 --- a/osu.Game/GameModes/GameModeWhiteBox.cs +++ b/osu.Game/GameModes/GameModeWhiteBox.cs @@ -29,7 +29,8 @@ namespace osu.Game.GameModes protected override double OnEntering(GameMode last) { //only show the pop button if we are entered form another gamemode. - popButton.Alpha = 1; + if (last != null) + popButton.Alpha = 1; MoveTo(new Vector2(ActualSize.X, 0)); MoveTo(Vector2.Zero, transition_time, EasingTypes.OutQuint);