Quantcast

Fix parenting of waypoint buttons on the world map

James Whitehead II [12-09-09 - 19:03]
Fix parenting of waypoint buttons on the world map
Filename
TomTom_Waypoints.lua
diff --git a/TomTom_Waypoints.lua b/TomTom_Waypoints.lua
index 1ebd2bf..b8784db 100644
--- a/TomTom_Waypoints.lua
+++ b/TomTom_Waypoints.lua
@@ -136,7 +136,7 @@ function TomTom:SetWaypoint(c, z, x, y, callbacks, show_minimap, show_world)
 		minimap:SetScript("OnEvent", Minimap_OnEvent)

         if not TomTomMapOverlay then
-            local overlay = CreateFrame("Frame", "TomTomMapOverlay", WorldMapDetailFrame)
+            local overlay = CreateFrame("Frame", "TomTomMapOverlay", WorldMapButton)
             overlay:SetAllPoints(true)
         end