mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 00:13:19 +08:00
Fix possible crash due to null user or playmode
This commit is contained in:
parent
54800aa4df
commit
05aeb66973
@ -152,8 +152,9 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
}
|
||||
|
||||
gamemodeControl.SetDefaultGamemode(user.PlayMode);
|
||||
gamemodeControl.SetDefaultGamemode(user?.PlayMode ?? "osu");
|
||||
gamemodeControl.SelectDefaultGamemode();
|
||||
|
||||
gamemodeControl.FadeInFromZero(100, Easing.OutQuint);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user