1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 18:32:56 +08:00

Use LastOrDefault instead

This commit is contained in:
Salman Ahmed 2021-06-28 12:43:55 +03:00
parent 7197998a10
commit 66fc95c111

View File

@ -88,7 +88,7 @@ namespace osu.Game.Skinning
}
}
int lastDefaultSkinIndex = SkinSources.IndexOf(SkinSources.OfType<DefaultSkin>().Last());
int lastDefaultSkinIndex = SkinSources.IndexOf(SkinSources.OfType<DefaultSkin>().LastOrDefault());
// Ruleset resources should be given the ability to override game-wide defaults
// This is achieved by placing them before the last instance of DefaultSkin.