1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Fix possible multiple enumeration

This commit is contained in:
Bartłomiej Dach 2021-05-03 15:57:57 +02:00
parent eeb66a955e
commit b9220d4dc7

View File

@ -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++)
{
var coverType = coverTypes.ElementAt(i % coverTypes.Count());
var coverType = coverTypes[i % coverTypes.Count];
var cover = new UpdateableBeatmapSetCover(coverType)
{