forked from your-land-mirror/yl_speak_up
handle simple_dialogs export when no dialogs are available
This commit is contained in:
parent
55b180544f
commit
eaf84cfd31
@ -174,9 +174,11 @@ yl_speak_up.get_fs_export = function(player, param)
|
||||
"line start would not be allowed in \"simple_dialogs\"."
|
||||
local tmp = {}
|
||||
local d_liste = {}
|
||||
if(dialog.n_dialogs) then
|
||||
for d_id, v in pairs(dialog.n_dialogs) do
|
||||
table.insert(d_liste, d_id)
|
||||
end
|
||||
end
|
||||
table.sort(d_liste)
|
||||
for i, d_id in ipairs(d_liste) do
|
||||
table.insert(tmp, "===")
|
||||
|
Loading…
Reference in New Issue
Block a user