1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 23:47:24 +08:00

Updated preload condition to handle special case

This commit is contained in:
MrTheMake 2017-05-21 14:08:04 +02:00
parent 662ea0ec2d
commit 043d1ed20a

View File

@ -414,7 +414,7 @@ namespace osu.Game.Screens.Select
lastIndex = ~lastIndex; lastIndex = ~lastIndex;
// Add the first panel of the last visible beatmap group to preload its data. // Add the first panel of the last visible beatmap group to preload its data.
if (panels[lastIndex - 1] is BeatmapSetHeader) if (lastIndex != 0 && panels[lastIndex - 1] is BeatmapSetHeader)
lastIndex++; lastIndex++;
} }