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:
parent
ac4f56403d
commit
e0210f5c4c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user