From ed3d6b087e202cdf1c089e005cdc31e506ed1542 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 1 Jan 2017 20:32:03 +0100 Subject: [PATCH] api: ensure variables to be available --- env/fonts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/fonts.lua b/env/fonts.lua index 21a24c32..68e0e2fb 100644 --- a/env/fonts.lua +++ b/env/fonts.lua @@ -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"