Fix possible crash due to null user or playmode

This commit is contained in:
EVAST9919 2019-06-04 20:20:07 +03:00
parent 54800aa4df
commit 05aeb66973

View File

@ -152,8 +152,9 @@ namespace osu.Game.Overlays
}
}
gamemodeControl.SetDefaultGamemode(user.PlayMode);
gamemodeControl.SetDefaultGamemode(user?.PlayMode ?? "osu");
gamemodeControl.SelectDefaultGamemode();
gamemodeControl.FadeInFromZero(100, Easing.OutQuint);
}