- Location : Fix for error on opening map
urnati [01-06-24 - 17:08]
- Location : Fix for error on opening map
diff --git a/TitanLocation/TitanLocation.lua b/TitanLocation/TitanLocation.lua
index 51ee258..23a274a 100755
--- a/TitanLocation/TitanLocation.lua
+++ b/TitanLocation/TitanLocation.lua
@@ -88,13 +88,16 @@ end
-- **************************************************************************
--]]
function TitanPanelLocationButton_OnShow()
+ -- Set the version of the map to use
if TITAN_ID == "TitanClassic" then
+ MapMinMaxFrame = WorldMapFrame.MaximizeMinimizeFrame
+
local mapID = C_Map.GetBestMapForUnit("player");
if mapID ~= nil and C_Map.MapHasArt(mapID) then
WorldMapFrame:SetMapID(mapID);
end
else
- -- no work needed
+ MapMinMaxFrame = WorldMapFrame.BorderFrame.MaximizeMinimizeFrame
end
TitanPanelLocation_HandleUpdater();
@@ -754,15 +757,6 @@ local function Create_Frames()
return -- if already created
end
- -- Set the version of the map to use
- if Titan_Panel.game_ver == "Classic"
- or Titan_Panel.game_ver == "Classic_Era"
- then
- MapMinMaxFrame = WorldMapFrame.MaximizeMinimizeFrame
- else
- MapMinMaxFrame = WorldMapFrame.BorderFrame.MaximizeMinimizeFrame
- end
-
-- general container frame
local f = CreateFrame("Frame", nil, UIParent)
-- f:Hide()