mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-16 13:48:06 +02:00
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\"."
|
||||
local tmp = {}
|
||||
local d_liste = {}
|
||||
for d_id, v in pairs(dialog.n_dialogs) do
|
||||
table.insert(d_liste, d_id)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user