Quantcast

Fix an error that could occur when right-clicking a waypoint after setting it, without ReloadWaypoints having been called

James Whitehead II [11-08-08 - 16:48]
Fix an error that could occur when right-clicking a waypoint after setting it, without ReloadWaypoints having been called
Filename
TomTom.lua
diff --git a/TomTom.lua b/TomTom.lua
index ae352a1..5b5b97f 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -133,6 +133,7 @@ function TomTom:ADDON_LOADED(event, addon)
 		self.dropdown = CreateFrame("Frame", "TomTomDropdown", nil, "UIDropDownMenuTemplate")

 		self.waypoints = waypoints
+		self.waypointprofile = self.waydb.profile

 		self:RegisterEvent("PLAYER_LEAVING_WORLD")
 		self:RegisterEvent("PLAYER_ENTERING_WORLD", "ZoneChanged")