1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 14:27:25 +08:00

Fix collection dropdown crashing when all collections are deleted at once

This commit is contained in:
Dean Herbert 2024-01-15 17:10:30 +09:00
parent 2b45a9b7c6
commit 0a522d260b
No known key found for this signature in database

View File

@ -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)