Fix crash on shift+right-click deleting objects

This commit is contained in:
kamp 2020-11-14 13:20:16 +01:00
parent aae59dc3cf
commit 4d2bc790fd
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ protected virtual void OnBlueprintRemoved(HitObject hitObject)
/// <returns>Whether a selection was performed.</returns>
private bool beginClickSelection(MouseButtonEvent e)
{
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren)
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren.ToList())
{
if (!blueprint.IsHovered) continue;