Quantcast

Fix hiding of corner textures for option frame

WildCard_25 [03-17-19 - 16:34]
Fix hiding of corner textures for option frame
Filename
GarrisonCommander.lua
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index 9b6348a..cdd977e 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -1177,7 +1177,7 @@ function addon:CreateHeader(module,MOVEPANEL,PIN)
 --@end-alpha@
 	-- Removing wood corner. I do it here to not derive an xml frame. This shoud play better with ui extensions
 	GCF.CloseButton:Hide()
-	for _,f in pairs({GCF:GetRegions()}) do
+	for _,f in pairs({GCF.GarrCorners:GetRegions()}) do
 		if (f:GetObjectType()=="Texture" and f:GetAtlas()=="Garr_WoodFrameCorner") then f:Hide() end
 	end
 	local main=module:GetMain()