From 302f097cbc4673dc7b55e5a8ba8cd36dc038dd3e Mon Sep 17 00:00:00 2001 From: CodingKoopa Date: Wed, 16 Sep 2020 18:16:13 -0400 Subject: [PATCH] Use Items.Count rather than hardcoding --- pk3DS/Subforms/Gen7/PersonalEditor7.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Subforms/Gen7/PersonalEditor7.cs b/pk3DS/Subforms/Gen7/PersonalEditor7.cs index 3b9c4db..e126f66 100644 --- a/pk3DS/Subforms/Gen7/PersonalEditor7.cs +++ b/pk3DS/Subforms/Gen7/PersonalEditor7.cs @@ -385,7 +385,7 @@ private void B_ModifyAll(object sender, EventArgs e) } if (CHK_FullTMCompatibility.Checked) - for (int t = 0; t < 100; t++) + for (int t = 0; t < CLB_TM.Items.Count; t++) CLB_TM.SetItemCheckState(t, CheckState.Checked); if (CHK_QuickHatch.Checked)