Quantcast

Initialize power fields of state machine from OvalePower.

Johnny C. Lam [11-17-13 - 16:30]
Initialize power fields of state machine from OvalePower.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1194 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvalePower.lua
diff --git a/OvalePower.lua b/OvalePower.lua
index 7eb026a..ebb2397 100644
--- a/OvalePower.lua
+++ b/OvalePower.lua
@@ -218,6 +218,9 @@ OvalePower.statePrototype = {
 --<public-static-methods>
 -- Initialize the state.
 function OvalePower:InitializeState(state)
+	for powerType in pairs(self.POWER_INFO) do
+		state[powerType] = 0
+	end
 	state.powerRate = {}
 end