From ab0da3b344c8c7f3ef735ed1c50cfce9218e7c9b Mon Sep 17 00:00:00 2001 From: Zidras <10605951+Zidras@users.noreply.github.com> Date: Sun, 17 Sep 2023 13:37:44 +0100 Subject: [PATCH] NP: prevent Lua error with nameplate being nil on zoning --- ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua b/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua index b9988e1..4bce266 100644 --- a/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua +++ b/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua @@ -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