mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:35:10 +08:00
Fix potentially providing the same skin instance twice in AllSources
This commit is contained in:
parent
d0cdc07b11
commit
c1284940e1
@ -251,10 +251,11 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
yield return CurrentSkin.Value;
|
||||
|
||||
if (CurrentSkin.Value is LegacySkin)
|
||||
if (CurrentSkin.Value is LegacySkin && CurrentSkin.Value != DefaultLegacySkin)
|
||||
yield return DefaultLegacySkin;
|
||||
|
||||
yield return DefaultSkin;
|
||||
if (CurrentSkin.Value != DefaultSkin)
|
||||
yield return DefaultSkin;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user