Fix error on 10.0

I guess this frame is gone. I don't remember why this was necessary.
This commit is contained in:
2022-10-27 20:32:47 -05:00
parent d0c06c7b55
commit b8cf6e90b0

View File

@ -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