mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Fixed collection modification inside foreach. (reported by Lud)
This commit is contained in:
parent
2953dc8715
commit
1b552471e0
1 changed files with 8 additions and 4 deletions
|
@ -804,10 +804,14 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
//Remove all vertex handles from selection
|
||||
if(vertices != null && vertices.Count > 0)
|
||||
{
|
||||
foreach(IVisualEventReceiver i in selectedobjects)
|
||||
{
|
||||
if(i is BaseVisualVertex) RemoveSelectedObject(i);
|
||||
}
|
||||
for (int i = 0; i < selectedobjects.Count; i++)
|
||||
{
|
||||
if (selectedobjects[i] is BaseVisualVertex)
|
||||
{
|
||||
RemoveSelectedObject(selectedobjects[i]);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue