Commit 3b28b11f authored by Simpy's avatar Simpy 🐹

fix error: "40x ElvUI_FCT\init.lua:381: attempt to index field 'db' (a nil value)"

parent 1bcbc7bb
......@@ -484,6 +484,8 @@ end
hooksecurefunc(E, 'Initialize', FCT.Initialize)
hooksecurefunc(NP, 'Update_Health', function(_, nameplate)
if not FCT.db then return end
if not nameplate.ElvFCT then
nameplate.ElvFCT = FCT:Build(nameplate, nameplate.RaisedElement)
......@@ -491,6 +493,8 @@ hooksecurefunc(NP, 'Update_Health', function(_, nameplate)
hooksecurefunc(UF, 'Configure_HealthBar', function(_, frame)
if not FCT.db then return end
if not frame.ElvFCT then
frame.ElvFCT = FCT:Build(frame, frame.RaisedElementParent)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment