Quantcast

Fix a bug with updating the coord feed throttle

James Whitehead II [10-18-10 - 14:41]
Fix a bug with updating the coord feed throttle
Filename
TomTom.lua
diff --git a/TomTom.lua b/TomTom.lua
index aa3fccf..fc38dcf 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -173,10 +173,6 @@ function TomTom:ADDON_LOADED(event, addon)
 			local coordFeedFrame = CreateFrame("Frame")
 			local throttle, counter = self.db.profile.feeds.coords_throttle, 0

-			function TomTom:UpdateCoordFeedThrottle()
-				throttle = self.db.profile.feeds.coords_throttle
-			end
-
 			coordFeedFrame:SetScript("OnUpdate", function(self, elapsed)
 				counter = counter + elapsed
 				if counter < throttle then
@@ -195,6 +191,10 @@ function TomTom:ADDON_LOADED(event, addon)
 	end
 end

+function TomTom:UpdateCoordFeedThrottle()
+    throttle = self.db.profile.feeds.coords_throttle
+end
+
 function TomTom:ReloadOptions()
 	-- This handles the reloading of all options
 	self.profile = self.db.profile