浏览代码

Attempt to fix multithreading issue

Bepis 6 年之前
父节点
当前提交
3b0add346e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      NTERA/Console/ConsoleRenderer.cs

+ 1 - 1
NTERA/Console/ConsoleRenderer.cs

@@ -58,7 +58,7 @@ namespace NTERA.Console
 
 		public void MouseHoverEvent(Point mousePoint, Control control)
 		{
-			foreach (var item in Items)
+			foreach (var item in Items.ToArray())
 			{
 				foreach (var rect in item.UpdateRegions)
 				{