Quantcast

- TitanLocation: Corrected local call to proper layer.

HonorGoG [08-09-19 - 03:34]
- TitanLocation: Corrected local call to proper layer.
Filename
TitanLocation/TitanLocation.lua
diff --git a/TitanLocation/TitanLocation.lua b/TitanLocation/TitanLocation.lua
index e5b16d5..5062af7 100755
--- a/TitanLocation/TitanLocation.lua
+++ b/TitanLocation/TitanLocation.lua
@@ -237,14 +237,15 @@ function TitanPanelLocationButton_OnClick(self, button)
 		if (IsShiftKeyDown()) then
 			local activeWindow = ChatEdit_GetActiveWindow();
 			if ( activeWindow ) then
+				local message;
 				if (TitanGetVar(TITAN_LOCATION_ID, "CoordsFormat1")) then
-					local message = TitanUtils_ToString(self.zoneText).." "..
+					message = TitanUtils_ToString(self.zoneText).." "..
 					format(L["TITAN_LOCATION_FORMAT"], 100 * self.px, 100 * self.py);
 				elseif (TitanGetVar(TITAN_LOCATION_ID, "CoordsFormat2")) then
-					local message = TitanUtils_ToString(self.zoneText).." "..
+					message = TitanUtils_ToString(self.zoneText).." "..
 					format(L["TITAN_LOCATION_FORMAT2"], 100 * self.px, 100 * self.py);
 				elseif (TitanGetVar(TITAN_LOCATION_ID, "CoordsFormat3")) then
-					local message = TitanUtils_ToString(self.zoneText).." "..
+					message = TitanUtils_ToString(self.zoneText).." "..
 					format(L["TITAN_LOCATION_FORMAT3"], 100 * self.px, 100 * self.py);
 				end
 				activeWindow:Insert(message);