mirror of
https://github.com/ppy/osu
synced 2025-01-25 15:23:02 +00: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