1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Ignore failed casts to make tests happy

This commit is contained in:
Dean Herbert 2020-10-14 23:52:58 +09:00
parent ac4f56403d
commit e0210f5c4c

View File

@ -21,8 +21,8 @@ namespace osu.Game.Screens.Play.HUD
{
base.SkinChanged(skin, allowFallback);
skinnedCounter = (IComboCounter)Drawable;
skinnedCounter.Current.BindTo(Current);
skinnedCounter = Drawable as IComboCounter;
skinnedCounter?.Current.BindTo(Current);
}
private static Drawable createDefault(ISkinComponent skinComponent) => new DefaultComboCounter();