mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 15:17:44 +08:00
Fix crash when switching tracks back and forth with shuffle on
This commit is contained in:
parent
1a25e9d179
commit
4a16341a94
@ -397,9 +397,12 @@ namespace osu.Game.Overlays
|
|||||||
randomHistoryDirection += direction;
|
randomHistoryDirection += direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = previousRandomSets[^1];
|
if (previousRandomSets.Count > 0)
|
||||||
previousRandomSets.RemoveAt(previousRandomSets.Count - 1);
|
{
|
||||||
return result;
|
result = previousRandomSets[^1];
|
||||||
|
previousRandomSets.RemoveAt(previousRandomSets.Count - 1);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the early-return above didn't cover it, it means that we have no history to fall back on
|
// if the early-return above didn't cover it, it means that we have no history to fall back on
|
||||||
|
Loading…
Reference in New Issue
Block a user