Skip to content

Commit 5766193

Browse files
author
LocalIdentity
committed
Fix issue when swapping weapon slots
1 parent d18b835 commit 5766193

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/SkillsTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
168168
self.controls.groupSlot = new("DropDownControl", { "TOPLEFT", self.anchorGroupDetail, "TOPLEFT" }, { 85, 28, 130, 20 }, groupSlotDropList, function(index, value)
169169
-- maintain imbued support to new slot
170170
if self.imbuedSupportBySlot[self.displayGroup.slot] and self.displayGroup.imbuedSupport then
171-
if value.label ~= "None" and not self.imbuedSupportBySlot[value.label] then
172-
self.imbuedSupportBySlot[value.label] = copyTable(self.imbuedSupportBySlot[self.displayGroup.slot], true)
171+
if value.slotName and not self.imbuedSupportBySlot[value.slotName] then
172+
self.imbuedSupportBySlot[value.slotName] = copyTable(self.imbuedSupportBySlot[self.displayGroup.slot], true)
173173
else
174174
self.controls.imbuedSupport.gemId = nil
175175
self.controls.imbuedSupport:SetText("")

0 commit comments

Comments
 (0)