Quantcast

Clear functions defined by AddFunction before compiling the script.

Johnny C. Lam [10-19-13 - 07:52]
Clear functions defined by AddFunction before compiling the script.

Old function names were lingering between script compilations.
Noted by @ShmooDude.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1066 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCompile.lua
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index 04fdd9a..295979b 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -701,6 +701,7 @@ local function CompileScript(text)
 	Ovale.bug = false

 	wipe(self_defines)
+	wipe(self_customFunctions)
 	wipe(self_missingSpellList)
 	wipe(self_functionCalls)