ExaltedPlus

ExaltedPlus

33.4k Downloads

10.1 lua error

JH0Ni-github opened this issue ยท 1 comments

commented

3347x ExaltedPlus/epcore.lua:33: bad argument #1 to 'pairs' (table expected, got nil)
[string "=[C]"]: in function pairs' [string "@ExaltedPlus/epcore.lua"]:33: in function update'
[string "@ExaltedPlus/epcore.lua"]:86: in function <ExaltedPlus/epcore.lua:85>
[string "=[C]"]: in function `UpdateBarsShown'
[string "@FrameXML/StatusTrackingManager.lua"]:51: in function <FrameXML/StatusTrackingManager.lua:41>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"
= defined =[C]:-1

commented

I'm not sure if this is correct, but I changed (from line 33) from

	for _,bar in pairs(StatusTrackingBarManager.bars) do
		if bar.factionID then
			frame.watchbar=bar
		end
	end

to

	for _,container in pairs(StatusTrackingBarManager.barContainers) do 
		for _,bar in pairs(container.bars) do
			if bar.factionID then
				frame.watchbar=bar
			end
		end
	end