mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Clamp backwards index to total current items to fix edge case of item removal
This commit is contained in:
@ -118,7 +118,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
return null;
|
||||
|
||||
int forwardsIndex = lastSelectedIndex;
|
||||
int backwardsIndex = lastSelectedIndex;
|
||||
int backwardsIndex = Math.Min(lastSelectedIndex, Items.Count - 1);
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
Reference in New Issue
Block a user