Quantcast

Using explicit _G

Alar of Runetotem [10-25-16 - 13:12]
Using explicit _G
Filename
GarrisonCommander-Broker/ldb.lua
diff --git a/GarrisonCommander-Broker/ldb.lua b/GarrisonCommander-Broker/ldb.lua
index ab87bda..70914ea 100644
--- a/GarrisonCommander-Broker/ldb.lua
+++ b/GarrisonCommander-Broker/ldb.lua
@@ -389,7 +389,7 @@ function addon:OnInitialized()
 		GarrisonLandingPageMinimapButton:RegisterForClicks("LEFTBUTTONUP","RIGHTBUTTONUP")
 		GarrisonLandingPageMinimapButton:SetScript("OnClick",
 			function (this,button)
-					if (GarrisonLandingPage and GarrisonLandingPage:IsShown()) then
+					if (_G.GarrisonLandingPage and GarrisonLandingPage:IsShown()) then
 						HideUIPanel(GarrisonLandingPage);
 					else
 						if button=="RightButton" then