mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Fix collection dropdown crashing when all collections are deleted at once
This commit is contained in:
parent
2b45a9b7c6
commit
0a522d260b
@ -74,7 +74,7 @@ namespace osu.Game.Collections
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (int i in changes.DeletedIndices)
|
||||
foreach (int i in changes.DeletedIndices.OrderByDescending(i => i))
|
||||
filters.RemoveAt(i + 1);
|
||||
|
||||
foreach (int i in changes.InsertedIndices)
|
||||
|
Loading…
Reference in New Issue
Block a user