fixed crash in simple dialogs export

This commit is contained in:
Sokomine 2024-12-13 17:27:29 +01:00
parent 5f6f488788
commit 6e604b05d0

View File

@ -38,7 +38,7 @@ yl_speak_up.export_to_simple_dialogs_language = function(dialog, n_id)
table.insert(tmp, "\n")
for o_id, o_data in pairs(dialog.n_dialogs[d_id].d_options or {}) do
local target_dialog = nil
for r_id, r_data in pairs(o_data.o_results) do
for r_id, r_data in pairs(o_data.o_results or {}) do
if(r_data.r_type and r_data.r_type == "dialog") then
target_dialog = r_data.r_value
end