Quantcast

Return a more sensible value in GetStealable if no such auras are found.

Johnny C. Lam [12-05-13 - 08:18]
Return a more sensible value in GetStealable if no such auras are found.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1232 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index f3988f2..fdd9521 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -870,7 +870,7 @@ statePrototype.GetStealable = function(state, unitId)
 	if count > 0 then
 		return count, start, ending
 	end
-	return nil
+	return 0, 0, math.huge
 end

 do