mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
unitframes: fix nil error on focus portraits
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user