From 513a3319fdc47d56aaa5e675f18e3b3ad707ae66 Mon Sep 17 00:00:00 2001 From: urnati Date: Sat, 6 Jan 2024 12:08:03 -0500 Subject: [PATCH] - Location : Fix for error on opening map --- TitanLocation/TitanLocation.lua | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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() -- 1.7.9.5