Quantcast

Fix nil string in error reporting.

Johnny C. Lam [03-11-13 - 03:51]
Fix nil string in error reporting.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@746 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCondition.lua
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index 8935c9e..8557e87 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -780,7 +780,7 @@ end
 OvaleCondition.conditions.casttime = function(condition)
 	local name, rank, icon, cost, isFunnel, powerType, castTime = OvaleData:GetSpellInfoOrNil(condition[1])
 	if Ovale.trace then
-		Ovale:Print("castTime/1000 = " .. (castTime/1000) .. " " .. condition[2] .. " " .. condition[3])
+		Ovale:Print("castTime/1000 = " .. (castTime/1000) .. " " .. tostring(condition[2]) .. " " .. tostring(condition[3]))
 	end
 	return compare(castTime/1000, condition[2], condition[3])
 end