Fix global variable leakage.
Johnny C. Lam [05-21-14 - 13:08]
Fix global variable leakage.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1483 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleRunes.lua b/OvaleRunes.lua
index 3ecbac4..c59b11a 100644
--- a/OvaleRunes.lua
+++ b/OvaleRunes.lua
@@ -468,8 +468,8 @@ end
statePrototype.GetRunesCooldown = nil
do
-- The remaining count requirements, indexed by rune type.
- count = {}
- usedRune = {}
+ local count = {}
+ local usedRune = {}
statePrototype.GetRunesCooldown = function(state, blood, unholy, frost, death, atTime)
-- Default to checking runes at the end of the current spellcast in the