Quantcast

Fix local variable leaking into global scope.

Johnny C. Lam [04-06-14 - 18:48]
Fix local variable leaking into global scope.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1288 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCooldown.lua
diff --git a/OvaleCooldown.lua b/OvaleCooldown.lua
index f2254eb..0d4a4b6 100644
--- a/OvaleCooldown.lua
+++ b/OvaleCooldown.lua
@@ -51,6 +51,7 @@ end
 -- If no spellId is given, then returns the GCD after a "yellow-hit" ability has been cast.
 function OvaleCooldown:GetGCD(spellId)
 	-- Base global cooldown.
+	local cd
 	local isCaster = false
 	if self_class == "DEATHKNIGHT" then
 		cd = 1.0