1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +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,9 +251,10 @@ namespace osu.Game.Skinning
{
yield return CurrentSkin.Value;
if (CurrentSkin.Value is LegacySkin)
if (CurrentSkin.Value is LegacySkin && CurrentSkin.Value != DefaultLegacySkin)
yield return DefaultLegacySkin;
if (CurrentSkin.Value != DefaultSkin)
yield return DefaultSkin;
}
}