diff --git a/fs_alternate_text.lua b/fs_alternate_text.lua index b2d10da..97e2851 100644 --- a/fs_alternate_text.lua +++ b/fs_alternate_text.lua @@ -348,6 +348,9 @@ yl_speak_up.show_colored_dialog_text = function(dialog, data, d_id, hypertext_po color = "777777" text = "[The NPC will end this conversation.]" end + if(not(text)) then + text = "[ERROR: No text!]" + end if(data and data.alternate_text and data.alternate_text ~= "") then add_info_alternate_text = alternate_label_text -- replace $TEXT$ with the normal dialog text and make the new text yellow