diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 3bd2d7986..2dcbf1f51 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -702,12 +702,13 @@ holding Shift will put it in the second.]]) end -- Section: Affix Selection + local maxModCount = 9 self.controls.displayItemSectionAffix = new("Control", {"TOPLEFT",self.controls.displayItemSectionRune,"BOTTOMLEFT"}, {0, 0, 0, function() if not self.displayItem or not self.displayItem.crafted then return 0 end local h = 6 - for i = 1, 6 do + for i = 1, maxModCount do if self.controls["displayItemAffix"..i]:IsShown() then h = h + 24 if self.controls["displayItemAffixRange"..i]:IsShown() then @@ -717,7 +718,7 @@ holding Shift will put it in the second.]]) end return h end}) - for i = 1, 6 do + for i = 1, maxModCount do local prev = self.controls["displayItemAffix"..(i-1)] or self.controls.displayItemSectionAffix local drop, slider local function verifyRange(range, index, drop) -- flips range if it will form discontinuous values