quick hack to prevent crash in certain situations

This commit is contained in:
Michael Becker 2020-11-20 22:18:29 -05:00
parent 41136a6a10
commit 14da757738
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -302,8 +302,14 @@ namespace UniversalEditor.UserInterface
{
if (!customOptions[j].Visible) continue;
customOptions[j].SetValue(sg.Settings[i].GetValue());
i++;
if (customOptions[j] is CustomOptionGroup)
{
}
else
{
customOptions[j].SetValue(sg.Settings[i].GetValue());
i++;
}
}
return true;
}