File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
ElvUI/Mainline/Modules/Skins Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,16 @@ function S:Blizzard_PVPUI()
36
36
37
37
for i = 1 , 4 do
38
38
local bu = _G [' PVPQueueFrameCategoryButton' .. i ]
39
- bu .Ring :Kill ()
40
- bu .Background :Kill ()
41
- S :HandleButton (bu )
42
-
43
- bu .Icon :Size (45 )
44
- bu .Icon :ClearAllPoints ()
45
- bu .Icon :Point (' LEFT' , 10 , 0 )
46
- S :HandleIcon (bu .Icon , true )
39
+ if bu then
40
+ bu .Ring :Kill ()
41
+ bu .Background :Kill ()
42
+ S :HandleButton (bu )
43
+
44
+ bu .Icon :Size (45 )
45
+ bu .Icon :ClearAllPoints ()
46
+ bu .Icon :Point (' LEFT' , 10 , 0 )
47
+ S :HandleIcon (bu .Icon , true )
48
+ end
47
49
end
48
50
49
51
local PVPQueueFrame = _G .PVPQueueFrame
@@ -62,9 +64,11 @@ function S:Blizzard_PVPUI()
62
64
63
65
-- Plunderstorm
64
66
local PlunderstormFrame = _G .PlunderstormFrame
65
- PlunderstormFrame .Inset :StripTextures ()
66
- S :HandleButton (PlunderstormFrame .StartQueue )
67
- S :HandleButton (_G .PVPQueueFrame .HonorInset .PlunderstormPanel .PlunderstoreButton )
67
+ if PlunderstormFrame then
68
+ PlunderstormFrame .Inset :StripTextures ()
69
+ S :HandleButton (PlunderstormFrame .StartQueue )
70
+ S :HandleButton (_G .PVPQueueFrame .HonorInset .PlunderstormPanel .PlunderstoreButton )
71
+ end
68
72
69
73
-- Honor Frame
70
74
local HonorFrame = _G .HonorFrame
You can’t perform that action at this time.
0 commit comments