Quantcast

b3n9ti

b3n9ti [09-12-14 - 22:42]
b3n9ti
Filename
SuperDuperMacro/SuperDuperMacro.toc
SuperDuperMacro/SuperDuperMacro_Core.lua
diff --git a/SuperDuperMacro/SuperDuperMacro.toc b/SuperDuperMacro/SuperDuperMacro.toc
index 12fc3fc..6286db8 100644
--- a/SuperDuperMacro/SuperDuperMacro.toc
+++ b/SuperDuperMacro/SuperDuperMacro.toc
@@ -2,7 +2,7 @@
 ## Title : Super Duper Macro
 ## Notes: Enables creation of incredibly long macros.
 ## Author: hypehuman (fixed by b3n9ti)
-## Version: 2.4.6 (fixed for WoD)
+## Version: 2.4.6
 ## SavedVariables: sdm_version, sdm_listFilters, sdm_iconSize, sdm_mainContents, sdm_macros
 SuperDuperMacro_Core.lua
 SuperDuperMacro_Interface.lua
diff --git a/SuperDuperMacro/SuperDuperMacro_Core.lua b/SuperDuperMacro/SuperDuperMacro_Core.lua
index d38ebb6..ba0fea9 100644
--- a/SuperDuperMacro/SuperDuperMacro_Core.lua
+++ b/SuperDuperMacro/SuperDuperMacro_Core.lua
@@ -302,12 +302,14 @@ function sdm_CompareVersions(firstString, secondString) --returns 1 if the first
 			end
 			numbers[i] = tonumber(numbers[i])
 		end
-		if numbers[1] > numbers[2] then
-			return 1
-		elseif numbers[2] > numbers[1] then
-			return 2
-		elseif (not strings[1]) and (not strings[2]) then
-			return 0
+		if type(numbers[1])=="number" and type(numbers[2])=="number" then
+			if numbers[1] > numbers[2] then
+				return 1
+			elseif numbers[2] > numbers[1] then
+				return 2
+			elseif (not strings[1]) and (not strings[2]) then
+				return 0
+			end
 		end
 	end
 end