Quantcast

Fix DebugRunes() methods after it moved to the state machine.

Johnny C. Lam [05-08-14 - 17:26]
Fix DebugRunes() methods after it moved to the state machine.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1403 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleRunes.lua
diff --git a/OvaleRunes.lua b/OvaleRunes.lua
index 47290c3..837991c 100644
--- a/OvaleRunes.lua
+++ b/OvaleRunes.lua
@@ -247,7 +247,7 @@ end
 --<state-methods>
 statePrototype.DebugRunes = function(state)
 	local now = state.currentTime
-	for slot, rune in ipairs(self.rune) do
+	for slot, rune in ipairs(state.rune) do
 		if rune.active then
 			Ovale:FormatPrint("rune[%d] (%s) is active.", slot, RUNE_NAME[rune.type])
 		else