Commit e4be2930 authored by Rainrider's avatar Rainrider

masterlooterindicator: fix for eventual nil masterlooter

Fixes https://github.com/oUF-wow/oUF/issues/431
parent c420748a
......@@ -53,9 +53,7 @@ local function Update(self, event)
mlUnit = 'raid' .. raidIndex
end
if(UnitIsUnit(unit, mlUnit)) then
isShown = true
end
isShown = mlUnit and UnitIsUnit(unit, mlUnit)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment