mirror of https://github.com/ppy/osu
Fix `SkinComponentToolbox` attempting to create instances of abstract classes
This commit is contained in:
parent
af6d53ad64
commit
806a16d8f6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue