mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-21 06:38:02 +02:00
#11 fix crash regarding missing n_dialog
This commit is contained in:
parent
ccfffc9568
commit
a1b92b7dca
@ -17,6 +17,9 @@ yl_speak_up.input_edit_option_dialog = function(player, formname, fields)
|
|||||||
|
|
||||||
local dialog = yl_speak_up.speak_to[pname].dialog
|
local dialog = yl_speak_up.speak_to[pname].dialog
|
||||||
local n_dialog = dialog.n_dialogs[d_id]
|
local n_dialog = dialog.n_dialogs[d_id]
|
||||||
|
if(not(n_dialog)) then
|
||||||
|
return
|
||||||
|
end
|
||||||
local d_option = n_dialog.d_options[o_id]
|
local d_option = n_dialog.d_options[o_id]
|
||||||
|
|
||||||
if(fields.switch_tab and fields.switch_tab == "2") then
|
if(fields.switch_tab and fields.switch_tab == "2") then
|
||||||
|
Loading…
Reference in New Issue
Block a user