Fix skinfallback test crashing on repeats

This commit is contained in:
smoogipoo 2020-11-12 17:58:39 +09:00
parent ffad1b3d94
commit de31c1ea0c
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ public Drawable GetDrawableComponent(ISkinComponent component)
{
if (!enabled) return null;
if (component is OsuSkinComponent osuComponent && osuComponent.Component == OsuSkinComponents.SliderBody)
return null;
return new OsuSpriteText
{
Text = identifier,