fonts: check for config variable first

This commit is contained in:
shagu
2017-12-22 10:56:45 +01:00
parent 3715b01665
commit 0ab7507cc8
+1 -1
View File
@@ -64,7 +64,7 @@ function pfUI.environment:UpdateFonts()
InvoiceTextFontSmall:SetFont(pfUI.font_default, 12)
CombatTextFont:SetFont(pfUI.font_combat, 25)
if pfUI_config.chat.text.outline == "1" then
if pfUI_config and pfUI_config.chat and pfUI_config.chat.text.outline == "1" then
ChatFontNormal:SetFont(pfUI.font_default, 13, "OUTLINE")
else
ChatFontNormal:SetFont(pfUI.font_default, 13)