unitframes: fix nil error on focus portraits

This commit is contained in:
shagu
2017-09-04 22:36:11 +02:00
parent ec4c680cb3
commit f484e1843c
+1 -1
View File
@@ -249,7 +249,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
local scan = UnitName(unit) or ""
if this.unitname == strlower(scan) then
this.label = unit
this.portrait.model.lastUnit = nil
if this.portrait then this.portrait.model.lastUnit = nil end
this.instantRefresh = true
pfUI.uf:RefreshUnit(this, "all")
return