mirror of
https://github.com/ppy/osu
synced 2025-02-20 20:47:09 +00:00
Add early return of carousel group has no items
This commit is contained in:
parent
2456a18bc1
commit
22ea9a8ab4
@ -114,6 +114,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
/// <returns>An unfiltered item nearest to the last selected one or null if all items are filtered</returns>
|
||||
protected virtual CarouselItem GetNextToSelect()
|
||||
{
|
||||
if (Items.Count == 0)
|
||||
return null;
|
||||
|
||||
int forwardsIndex = lastSelectedIndex;
|
||||
bool hasForwards;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user