Fix crash when accessing Y Slice menu

This commit is contained in:
Wuzzy 2017-09-05 03:13:19 +02:00
parent 1722d33330
commit 31ed6fbbd0
1 changed files with 4 additions and 2 deletions

View File

@ -388,8 +388,10 @@ advschem.add_form("slice", {
local done_button = "button[5,7.18;2,1;done_add;Done]" local done_button = "button[5,7.18;2,1;done_add;Done]"
if self.panel_edit then if self.panel_edit then
done_button = "button[5,7.18;2,1;done_edit;Done]" done_button = "button[5,7.18;2,1;done_edit;Done]"
ypos_default = slice_list[self.selected].ypos if slice_list[self.selected] then
prob_default = slice_list[self.selected].prob ypos_default = slice_list[self.selected].ypos
prob_default = slice_list[self.selected].prob
end
end end
form = form..[[ form = form..[[