Quantcast

* Use variables that actually existzomg1

James Whitehead II [06-04-07 - 01:40]
* Use variables that actually existzomg1
Filename
PerfectRaid.lua
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index b0b0b52..e8a9486 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -533,8 +533,8 @@ function OnAttributeChanged(frame, name, value)
 	-- If we've been given a unit, instead of nil
 	if value then
 		-- Register us for frame updates under the correct unit ID.
-		frames[unit] = frames[unit] or {}
-		frames[unit][frame] = true
+		frames[value] = frames[value] or {}
+		frames[value][frame] = true

 		-- Use the unitname to check if we need to update config
 		-- even if the unitID changed.