Skip to content

Commit

Permalink
LuaTexts: Rep text update safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Aug 15, 2024
1 parent ab38b7a commit 20a3dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/LuaTexts/LuaTexts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20a3dc0

Please sign in to comment.