Skip to content

Commit ccd87df

Browse files
authored
Fix #1130: nil check on socketed skill items (#1132)
1 parent 8a408fc commit ccd87df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Classes/ImportTab.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,12 @@ function ImportTabClass:ImportItemsAndSkills(charData)
716716
local group = { label = "", enabled = true, gemList = { } }
717717
t_insert(group.gemList, gemInstance )
718718

719-
for _, anotherSkillData in pairs(skillData.socketedItems) do
720-
local anotherGemInstance = funcGetGemInstance(anotherSkillData)
721-
if anotherGemInstance then
722-
t_insert(group.gemList, anotherGemInstance )
719+
if skillData.socketedItems then
720+
for _, anotherSkillData in pairs(skillData.socketedItems) do
721+
local anotherGemInstance = funcGetGemInstance(anotherSkillData)
722+
if anotherGemInstance then
723+
t_insert(group.gemList, anotherGemInstance )
724+
end
723725
end
724726
end
725727

0 commit comments

Comments
 (0)