Skip to content

Commit d024cc6

Browse files
authored
Fix crash when deleting newly created config set (#1120)
* FIX: save id into selValue instead of table * FIX: same issue as e711588 but for items and gems
1 parent cdfbe4f commit d024cc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Classes/ItemSetListControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function ItemSetListClass:RenameSet(itemSet, addOnName)
5353
if addOnName then
5454
t_insert(self.list, itemSet.id)
5555
self.selIndex = #self.list
56-
self.selValue = itemSet
56+
self.selValue = itemSet.id
5757
end
5858
self.itemsTab:AddUndoState()
5959
self.itemsTab.build:SyncLoadouts()

src/Classes/SkillSetListControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function SkillSetListClass:RenameSet(skillSet, addOnName)
6262
if addOnName then
6363
t_insert(self.list, skillSet.id)
6464
self.selIndex = #self.list
65-
self.selValue = skillSet
65+
self.selValue = skillSet.id
6666
end
6767
self.skillsTab:AddUndoState()
6868
self.skillsTab.build:SyncLoadouts()

0 commit comments

Comments
 (0)