Fix for modified collection in CorrectSkinDecimals function

This commit is contained in:
MattN-L
2024-03-31 20:45:25 -04:00
parent 8293cd5b61
commit 29d43035ff

View File

@@ -2113,7 +2113,7 @@ namespace PckStudio
if (treeViewMain.SelectedNode.TryGetTagData(out PckFileData file) &&
file.Filetype == PckFileType.SkinFile)
{
foreach (KeyValuePair<string, string> p in file.GetProperties())
foreach (KeyValuePair<string, string> p in file.GetProperties().ToList())
{
if (p.Key == "BOX" || p.Key == "OFFSET")
file.SetProperty(file.GetPropertyIndex(p), new KeyValuePair<string, string>(p.Key, p.Value.Replace(',', '.')));