private void EnsureSelectedSizeAreValid()
{
int length = Enum.GetNames(typeof(GameViewSizeGroupType)).Length;
if (this.m_SelectedSizes.Length != length)
{
Array.Resize <int>(ref this.m_SelectedSizes, length);
}
foreach (int num in Enum.GetValues(typeof(GameViewSizeGroupType)))
{
GameViewSizeGroupType gameViewSizeGroupType = (GameViewSizeGroupType)num;
GameViewSizeGroup group = ScriptableSingleton <GameViewSizes> .instance.GetGroup(gameViewSizeGroupType);
int index = (int)gameViewSizeGroupType;
this.m_SelectedSizes[index] = Mathf.Clamp(this.m_SelectedSizes[index], 0, group.GetTotalCount() - 1);
}
}