Quantcast

Fix an issue with saved variables/callbacks

James Whitehead II [10-12-12 - 06:02]
Fix an issue with saved variables/callbacks
Filename
TomTom.lua
diff --git a/TomTom.lua b/TomTom.lua
index 225715e..c4c0bfa 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -274,7 +274,10 @@ function TomTom:ReloadWaypoints()
 			-- Override options with what is stored in the profile
 			for k,v in pairs(waypoint) do
 				if type(k) == "string" then
-					options[k] = v
+					if k ~= "callbacks" then
+						-- we can never import callbacks, so ditch them
+						options[k] = v
+					end
 				end
 			end