From 20a3dc0178972211c1980581247b7cb202c8c3b2 Mon Sep 17 00:00:00 2001 From: Kyle Buller Date: Thu, 15 Aug 2024 17:59:05 -0500 Subject: [PATCH] LuaTexts: Rep text update safety check --- Modules/LuaTexts/LuaTexts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/LuaTexts/LuaTexts.lua b/Modules/LuaTexts/LuaTexts.lua index 90e6f63..cbfeca3 100755 --- a/Modules/LuaTexts/LuaTexts.lua +++ b/Modules/LuaTexts/LuaTexts.lua @@ -788,7 +788,7 @@ local function fix_rep_std_text() local elements = layout.elements if elements then for _, text in next, elements do - if text.code:find("GetWatchedFactionInfo", nil, true) or text.code:find("GetFriendshipReputation", nil, true) then + if text.code and (text.code:find("GetWatchedFactionInfo", nil, true) or text.code:find("GetFriendshipReputation", nil, true)) then text.code = PROVIDED_CODES[L["Reputation"]][L["Standard"]].code end end