fixed bug #19 (text was nil)

This commit is contained in:
Sokomine 2022-11-12 17:37:13 +01:00
parent c9cc112169
commit 664726897c

View File

@ -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