Quantcast

Fixed issue with rested on non-rested players

p3lim-52096 [06-01-09 - 16:39]
Fixed issue with rested on non-rested players

git-svn-id: svn://svn.wowinterface.com/oUF_Experience-227/trunk@34 f81be506-7a38-4956-9b9f-d707db2888a5
Filename
oUF_Experience/oUF_Experience.lua
diff --git a/oUF_Experience/oUF_Experience.lua b/oUF_Experience/oUF_Experience.lua
index a30b2b3..bbd04ea 100644
--- a/oUF_Experience/oUF_Experience.lua
+++ b/oUF_Experience/oUF_Experience.lua
@@ -56,7 +56,7 @@ local function Update(self)
 	end

 	if(bar.Rested and unit == 'player') then
-		if(GetXPExhaustion() > 0) then
+		if(GetXPExhaustion() and GetXPExhaustion() > 0) then
 			bar.Rested:SetMinMaxValues(min, max)
 			bar.Rested:SetValue(math.min(min + GetXPExhaustion(), max))
 		else