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,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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user