mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
fix for Drawables being empty crashing
This commit is contained in:
@ -194,7 +194,11 @@ namespace osu.Game.Screens.Select
|
|||||||
if (!Items.Any())
|
if (!Items.Any())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int originalIndex = Items.IndexOf(selectedBeatmap?.Drawables.First());
|
var d = selectedBeatmap?.Drawables.FirstOrDefault();
|
||||||
|
if (d == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
int originalIndex = Items.IndexOf(d);
|
||||||
int currentIndex = originalIndex;
|
int currentIndex = originalIndex;
|
||||||
|
|
||||||
// local function to increment the index in the required direction, wrapping over extremities.
|
// local function to increment the index in the required direction, wrapping over extremities.
|
||||||
|
Reference in New Issue
Block a user