diff --git a/Widgets/Bars/PowerBar.lua b/Widgets/Bars/PowerBar.lua index 1b4a213..161cef6 100644 --- a/Widgets/Bars/PowerBar.lua +++ b/Widgets/Bars/PowerBar.lua @@ -4,7 +4,7 @@ local CUF = select(2, ...) local Cell = CUF.Cell local F = Cell.funcs ---@type LibGroupInfo -local LGI = LibStub:GetLibrary("LibGroupInfo") +local LGI = LibStub:GetLibrary("LibGroupInfo", true) ---@class CUF.widgets local W = CUF.widgets @@ -36,7 +36,7 @@ local function GetRole(button) return button.states.role end - local info = LGI:GetCachedInfo(button.states.guid) + local info = LGI and LGI:GetCachedInfo(button.states.guid) if not info then return end return info.role end