api: ensure variables to be available

This commit is contained in:
shagu
2017-01-01 20:32:03 +01:00
parent fe232d2553
commit ed3d6b087e
+1 -1
View File
@@ -17,7 +17,7 @@ function pfUI.environment:UpdateFonts()
end
-- force locale based fonts
if pfUI_config and pfUI_config.global.force_region == "1" then
if pfUI_config and pfUI_config.global and pfUI_config.global.force_region == "1" then
if GetLocale() == "zhCN" then
pfUI.font_default = "Fonts\\FZXHLJW.TTF"
pfUI.font_combat = "Fonts\\FZXHLJW.TTF"