mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fix possible multiple enumeration
This commit is contained in:
@ -57,11 +57,13 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var coverTypes = Enum.GetValues(typeof(BeatmapSetCoverType)).Cast<BeatmapSetCoverType>();
|
var coverTypes = Enum.GetValues(typeof(BeatmapSetCoverType))
|
||||||
|
.Cast<BeatmapSetCoverType>()
|
||||||
|
.ToList();
|
||||||
|
|
||||||
for (int i = 0; i < 25; i++)
|
for (int i = 0; i < 25; i++)
|
||||||
{
|
{
|
||||||
var coverType = coverTypes.ElementAt(i % coverTypes.Count());
|
var coverType = coverTypes[i % coverTypes.Count];
|
||||||
|
|
||||||
var cover = new UpdateableBeatmapSetCover(coverType)
|
var cover = new UpdateableBeatmapSetCover(coverType)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user