More Array Usage

This commit is contained in:
Gurge44 committed 2023-11-06 18:59:34 +01:00
1 parent 7285a056d3
commit 644bab4024
78 files changed
+310 -495

No files matched your search

+1 -2
View File
@@ -89,9 +89,8 @@ public class ErrorText : MonoBehaviour
{
string text = string.Empty;
int maxLevel = 0;
for (int i = 0; i < AllErrors.Count; i++)
foreach (ErrorData err in AllErrors.ToArray())
{
ErrorData err = AllErrors[i];
text += $"{err}: {err.Message}\n";
if (maxLevel < err.ErrorLevel) maxLevel = err.ErrorLevel;
}