From f8ab936025b03922d8fa8eaaa07ef10c5d5fb6c2 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Mon, 24 Aug 2026 21:31:05 +0200 Subject: [PATCH] Remove duplicate world map coordinate frame names --- mods/worldmap-coordinates.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mods/worldmap-coordinates.lua b/mods/worldmap-coordinates.lua index daa2fc0..35a3ee7 100644 --- a/mods/worldmap-coordinates.lua +++ b/mods/worldmap-coordinates.lua @@ -19,7 +19,10 @@ module.enable = function(self) -- coordinates if not WorldMapButton.coords then - WorldMapButton.coords = CreateFrame("Frame", "pfWorldMapButtonCoords", WorldMapButton) + -- These helper frames are only accessed through WorldMapButton fields and + -- never need global names. The old code gave both frames the exact same + -- global name, which can collide in Vanilla's global frame registry. + WorldMapButton.coords = CreateFrame("Frame", nil, WorldMapButton) WorldMapButton.coords.text = WorldMapButton.coords:CreateFontString(nil, "OVERLAY") WorldMapButton.coords.text:SetPoint("BOTTOMLEFT", WorldMapButton, "BOTTOMLEFT", 3, -21) WorldMapButton.coords.text:SetFontObject(GameFontWhite) @@ -31,7 +34,7 @@ module.enable = function(self) WorldMapButton.coords.text:SetPoint("LEFT", Gatherer_WorldMapDisplay, "RIGHT", 3, -21) end - WorldMapButton.player = CreateFrame("Frame", "pfWorldMapButtonCoords", WorldMapButton) + WorldMapButton.player = CreateFrame("Frame", nil, WorldMapButton) WorldMapButton.player.text = WorldMapButton.player:CreateFontString(nil, "OVERLAY") WorldMapButton.player.text:SetPoint("BOTTOMRIGHT", WorldMapButton, "BOTTOMRIGHT", -3, -21) WorldMapButton.player.text:SetFontObject(GameFontWhite)