mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 12:42:54 +08:00
Fix drag select crashing
This commit is contained in:
parent
32e8d93596
commit
5426432e46
@ -72,7 +72,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
/// <param name="rect">The rectangle to perform a selection on in screen-space coordinates.</param>
|
||||
public void Select(RectangleF rect)
|
||||
{
|
||||
foreach (var mask in aliveMasks)
|
||||
foreach (var mask in aliveMasks.ToList())
|
||||
{
|
||||
if (mask.IsPresent && rect.Contains(mask.SelectionPoint))
|
||||
mask.Select();
|
||||
|
Loading…
Reference in New Issue
Block a user