mirror of https://github.com/ppy/osu
Use `LastOrDefault` instead
This commit is contained in:
parent
7197998a10
commit
66fc95c111
|
@ -88,7 +88,7 @@ protected virtual void UpdateSkinSources()
|
|||
}
|
||||
}
|
||||
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue