1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 10:22:54 +08:00

Add null check.

This commit is contained in:
Dean Herbert 2016-09-29 23:52:51 +09:00
parent 154226b9a3
commit a114463678

View File

@ -29,7 +29,8 @@ namespace osu.Game.GameModes
protected override double OnEntering(GameMode last) protected override double OnEntering(GameMode last)
{ {
//only show the pop button if we are entered form another gamemode. //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(new Vector2(ActualSize.X, 0));
MoveTo(Vector2.Zero, transition_time, EasingTypes.OutQuint); MoveTo(Vector2.Zero, transition_time, EasingTypes.OutQuint);