Skip to content

Commit

Permalink
NP: prevent Lua error with nameplate being nil on zoning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Sep 17, 2023
1 parent b54ac55 commit ab0da3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ end

function ZNP:NAME_PLATE_UNIT_REMOVED(_, unit)
local plate = GetNamePlateForUnit(unit)
if not plate then return end -- prevent Lua error after Zoning Loading Screen if nameplate was visible prior to zoning

OnHideHook(plate)
end
Expand Down

0 comments on commit ab0da3b

Please sign in to comment.