diff --git a/ElvUI/Libraries/oUF/ouf.lua b/ElvUI/Libraries/oUF/ouf.lua index e400eb4..2747ff3 100644 --- a/ElvUI/Libraries/oUF/ouf.lua +++ b/ElvUI/Libraries/oUF/ouf.lua @@ -24,10 +24,10 @@ local function enableTargetUpdate(object) local total = 0 object:SetScript('OnUpdate', function() - if(not self.unit) then + if(not this.unit) then return - elseif(total > self.onUpdateFrequency) then - self:UpdateAllElements('OnUpdate') + elseif(total > this.onUpdateFrequency) then + this:UpdateAllElements('OnUpdate') total = 0 end