Skip to content

Commit 5ac85f4

Browse files
author
LocalIdentity
committed
Fix abyss sockets removing when running compare
We were not using the item id to use when resetting causing jewels to not equip after running the compare to another build with an abyss jewel
1 parent 3fdd642 commit 5ac85f4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/CompareTab.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,8 +2668,9 @@ function CompareTabClass:ComparePowerBuilder(compareEntry, powerStat, categories
26682668
local abyssSlotName = string.format("%s Abyssal Socket %d", slotName, idx)
26692669
local cmpJewelSlot = compareEntry.itemsTab.slots[abyssSlotName]
26702670
-- save old id and unequip existing
2671-
oldEquipped[abyssSlotName] = self.primaryBuild.itemsTab.slots[abyssSlotName]
2672-
self.primaryBuild.itemsTab.slots[abyssSlotName]:SetSelItemId(0)
2671+
local primaryJewelSlot = self.primaryBuild.itemsTab.slots[abyssSlotName]
2672+
oldEquipped[abyssSlotName] = primaryJewelSlot.selItemId
2673+
primaryJewelSlot:SetSelItemId(0)
26732674
if cmpJewelSlot.selItemId > 0 then
26742675
local cmpJewel = compareEntry.itemsTab.items[cmpJewelSlot.selItemId]
26752676
-- due to a previous bug where jewel slots didn't

0 commit comments

Comments
 (0)