From b8cf6e90b0642bc3e75d36c0e5d35dde3d351379 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 27 Oct 2022 20:32:47 -0500 Subject: [PATCH] Fix error on 10.0 I guess this frame is gone. I don't remember why this was necessary. --- modules/PlayerInfo.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/PlayerInfo.lua b/modules/PlayerInfo.lua index 59aa28a..d3831f7 100644 --- a/modules/PlayerInfo.lua +++ b/modules/PlayerInfo.lua @@ -115,7 +115,9 @@ end function PlayerInfo.prototype:ShowBlizz() BuffFrame:Show() - TemporaryEnchantFrame:Show() + if TemporaryEnchantFrame then + TemporaryEnchantFrame:Show() + end BuffFrame:GetScript("OnLoad")(BuffFrame) end @@ -123,7 +125,9 @@ end function PlayerInfo.prototype:HideBlizz() BuffFrame:Hide() - TemporaryEnchantFrame:Hide() + if TemporaryEnchantFrame then + TemporaryEnchantFrame:Hide() + end BuffFrame:UnregisterAllEvents() end