fixed crash attempt to index field 'd_options' #13 v2
This commit is contained in:
parent
212809d380
commit
28106daa7b
@ -165,7 +165,7 @@ yl_speak_up.get_fs_edit_option_dialog = function(player, n_id, d_id, o_id, calle
|
||||
yl_speak_up.trade[pname] = nil
|
||||
yl_speak_up.speak_to[pname].trade_id = nil
|
||||
|
||||
if(not(n_dialog.d_options) or not(n_dialog.d_options[o_id])) then
|
||||
if(not(n_dialog) or not(n_dialog.d_options) or not(n_dialog.d_options[o_id])) then
|
||||
return "size[6,2]"..
|
||||
"label[0.2,0.5;Ups! Option "..minetest.formspec_escape(tostring(o_id))..
|
||||
" does not exist.]"..
|
||||
|
Loading…
Reference in New Issue
Block a user