1
0
mirror of git://repo.or.cz/minetest_schemedit.git synced 2025-01-09 17:40:32 +01:00

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

View File

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