mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Guard against NewModifiedIndices
being empty
This commit is contained in:
@ -273,7 +273,7 @@ namespace osu.Game.Screens.Select
|
||||
// Check if the current selection was potentially deleted by re-querying its validity.
|
||||
bool selectedSetMarkedDeleted = realm.Run(r => r.Find<BeatmapSetInfo>(SelectedBeatmapSet.ID))?.DeletePending != false;
|
||||
|
||||
if (selectedSetMarkedDeleted)
|
||||
if (selectedSetMarkedDeleted && changes.NewModifiedIndices.Any())
|
||||
{
|
||||
// If it is no longer valid, make the bold assumption that an updated version will be available in the modified indices.
|
||||
// This relies on the full update operation being in a single transaction, so please don't change that.
|
||||
|
Reference in New Issue
Block a user