From 29d43035ff0ba41b7e40bca5b264aa667e93db17 Mon Sep 17 00:00:00 2001 From: MattN-L Date: Sun, 31 Mar 2024 20:45:25 -0400 Subject: [PATCH] Fix for modified collection in CorrectSkinDecimals function --- PCK-Studio/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 374a757c..ca9e576c 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -2113,7 +2113,7 @@ namespace PckStudio if (treeViewMain.SelectedNode.TryGetTagData(out PckFileData file) && file.Filetype == PckFileType.SkinFile) { - foreach (KeyValuePair p in file.GetProperties()) + foreach (KeyValuePair p in file.GetProperties().ToList()) { if (p.Key == "BOX" || p.Key == "OFFSET") file.SetProperty(file.GetPropertyIndex(p), new KeyValuePair(p.Key, p.Value.Replace(',', '.')));