Skip to content

Commit 4432138

Browse files
github-actions[bot]vaisestLocalIdentity
authored
[pob2-port] Fix crash when importing items with +1 suffix rune (#9894)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding-PoE2#2175 * Fix merge issue --------- Co-authored-by: vaisest <vaisest@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 4f97c04 commit 4432138

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,12 +673,13 @@ holding Shift will put it in the second.]])
673673
end)
674674

675675
-- Section: Affix Selection
676+
local maxModCount = 9
676677
self.controls.displayItemSectionAffix = new("Control", {"TOPLEFT",self.controls.displayItemSectionClusterJewel,"BOTTOMLEFT"}, {0, 0, 0, function()
677678
if not self.displayItem or not self.displayItem.crafted then
678679
return 0
679680
end
680681
local h = 6
681-
for i = 1, 6 do
682+
for i = 1, maxModCount do
682683
if self.controls["displayItemAffix"..i]:IsShown() then
683684
h = h + 24
684685
if self.controls["displayItemAffixRange"..i]:IsShown() then
@@ -688,7 +689,7 @@ holding Shift will put it in the second.]])
688689
end
689690
return h
690691
end})
691-
for i = 1, 6 do
692+
for i = 1, maxModCount do
692693
local prev = self.controls["displayItemAffix"..(i-1)] or self.controls.displayItemSectionAffix
693694
local drop, slider
694695
local function verifyRange(range, index, drop) -- flips range if it will form discontinuous values

0 commit comments

Comments
 (0)