Quantcast

Small fix for names not updating (units would be correct, names would be off)

James Whitehead II [01-15-07 - 23:35]
Small fix for names not updating (units would be correct, names would be off)
Filename
PerfectRaid.lua
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index c33adef..a385771 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -385,13 +385,18 @@ local function OnAttributeChanged(frame, name, value)
 		end
 	end

+	local unitname = UnitName(value)
 	if not frame.unit then
 		frame.unit = value
+		frame.unitname = unitname
 	else
-		if frame.unit == value then
+		if frame.unit == value and frame.unitname == unitname then
 			return
 		end
 	end
+
+	frame.unit = value
+	frame.unitname = unitname

 	if value then
 		-- Do Visual Configuration here