Fix `SkinComponentToolbox` attempting to create instances of abstract classes

This commit is contained in:
Dean Herbert 2022-03-18 20:13:15 +09:00
parent af6d53ad64
commit 806a16d8f6
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ private void reloadComponents()
fill.Clear();
var skinnableTypes = typeof(OsuGame).Assembly.GetTypes()
.Where(t => !t.IsInterface)
.Where(t => !t.IsInterface && !t.IsAbstract)
.Where(t => typeof(ISkinnableDrawable).IsAssignableFrom(t))
.OrderBy(t => t.Name)
.ToArray();