1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 14:07:25 +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;
// 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++;
}