1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 09:27:34 +08:00

Add explanatory comment

This commit is contained in:
Dan Balasescu 2022-06-13 16:58:43 +09:00
parent a8286bdf04
commit c178e5d592

View File

@ -130,6 +130,8 @@ namespace osu.Game.Screens.Edit
removedIndices.Sort();
addedIndices.Sort();
// The expected usage of this returned list is to iterate from the start to the end of the list, such that
// these indices need to appear in reverse order for the usage to not have to deal with decrementing indices.
removedIndices.Reverse();
}