Quantcast

Make sure we update the sizes properly on load

Adrian L Lange [11-01-14 - 14:32]
Make sure we update the sizes properly on load
Filename
oUF_P3lim.lua
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index f81167c..541909c 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -41,8 +41,8 @@ local function PostUpdateCast(element, unit)
 	end
 end

-local function PostUpdateClassIcon(element, cur, max, diff)
-	if(diff) then
+local function PostUpdateClassIcon(element, cur, max, diff, event)
+	if(diff or event == 'ClassPowerEnable') then
 		for index = 1, max do
 			local ClassIcon = element[index]
 			if(max == 3) then