add a null-variable check (#8789)

This commit is contained in:
Nighty
2025-07-08 20:37:51 +10:00
committed by GitHub
parent 707dd8628f
commit 8292df858a

View File

@@ -2569,7 +2569,7 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
local excludeGroups = { }
for _, modLine in ipairs({ self.displayItem.prefixes, self.displayItem.suffixes }) do
for i = 1, (modLine.limit or (self.displayItem.affixLimit / 2)) do
if modLine[i].modId ~= "None" then
if modLine[i] and modLine[i].modId ~= "None" then
excludeGroups[self.displayItem.affixes[modLine[i].modId].group] = true
end
end