Quantcast

Fix a bug with arena frames integration

James Whitehead II [01-10-11 - 10:20]
Fix a bug with arena frames integration
Filename
BlizzardFrames.lua
diff --git a/BlizzardFrames.lua b/BlizzardFrames.lua
index 531e249..dd8c9d0 100644
--- a/BlizzardFrames.lua
+++ b/BlizzardFrames.lua
@@ -324,8 +324,8 @@ function addon:EnableBlizzardFrames()
         frame:RegisterEvent("ADDON_LOADED")
         frame:SetScript("OnEvent", function(frame, event, ...)
             if ... == "Blizzard_ArenaUI" then
-                self:UnregisterEvent("ADDON_LOADED")
-                self:SetScript("OnEvent", nil)
+                frame:UnregisterEvent("ADDON_LOADED")
+                frame:SetScript("OnEvent", nil)
                 self:Enable_BlizzArenaFrames()
             end
         end)