mirror of
https://github.com/osukey/osukey.git
synced 2025-07-17 00:10:04 +09:00
Fix potential nullref if mods are never set
This commit is contained in:
@ -88,10 +88,13 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
iconsContainer.Clear();
|
iconsContainer.Clear();
|
||||||
|
|
||||||
foreach (Mod mod in mods.NewValue)
|
if (mods.NewValue != null)
|
||||||
iconsContainer.Add(new ModIcon(mod) { Scale = new Vector2(0.6f) });
|
{
|
||||||
|
foreach (Mod mod in mods.NewValue)
|
||||||
|
iconsContainer.Add(new ModIcon(mod) { Scale = new Vector2(0.6f) });
|
||||||
|
|
||||||
appearTransform();
|
appearTransform();
|
||||||
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
iconsContainer.FadeInFromZero(fade_duration, Easing.OutQuint);
|
iconsContainer.FadeInFromZero(fade_duration, Easing.OutQuint);
|
||||||
|
Reference in New Issue
Block a user