1
0
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:
Salman Ahmed 2021-06-22 10:49:37 +03:00
parent d0cdc07b11
commit c1284940e1

View File

@ -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;
}
}