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