handle simple_dialogs export when no dialogs are available

This commit is contained in:
Sokomine 2024-02-13 05:41:01 +01:00
parent 55b180544f
commit eaf84cfd31

View File

@ -174,8 +174,10 @@ yl_speak_up.get_fs_export = function(player, param)
"line start would not be allowed in \"simple_dialogs\"." "line start would not be allowed in \"simple_dialogs\"."
local tmp = {} local tmp = {}
local d_liste = {} local d_liste = {}
for d_id, v in pairs(dialog.n_dialogs) do if(dialog.n_dialogs) then
table.insert(d_liste, d_id) for d_id, v in pairs(dialog.n_dialogs) do
table.insert(d_liste, d_id)
end
end end
table.sort(d_liste) table.sort(d_liste)
for i, d_id in ipairs(d_liste) do for i, d_id in ipairs(d_liste) do