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

Fix off-by-one in display range retrieval logic

This commit is contained in:
Dean Herbert 2020-10-19 13:05:42 +09:00
parent 4590d9b93b
commit ee0efa0b4c

View File

@ -590,7 +590,7 @@ namespace osu.Game.Screens.Select
{
displayedRange = newDisplayRange;
var toDisplay = visibleItems.GetRange(displayedRange.first, displayedRange.last - displayedRange.first);
var toDisplay = visibleItems.GetRange(displayedRange.first, displayedRange.last - displayedRange.first + 1);
foreach (var panel in ScrollableContent.Children)
{