Originally Posted by Garkin
Everywhere, where are you using method :GetMaterialQuantity is a check if return value exists. But in the SetupFunction in :InitializeMaterialList is this check missing. There should probably be something like this:
Lua Code:
local function SetupFunction(control, data, selected, selectedDuringRebuild, enabled) --original code here local currentSelectedQuantity = self:GetMaterialQuantity(data.patternIndex, data.materialIndex) --added check if return value exists: if not currentSelectedQuantity then self:SetMaterialQuantity(data.patternIndex, data.materialIndex, data.min) currentSelectedQuantity = data.min end --rest of the original code end
|
This code was added to EsoUI source in patch 1.5.8. ;-)