From fc9b8eb7df113a9df6c84a70a5aef19f1b58c865 Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Mon, 11 Apr 2022 14:38:14 +0200 Subject: [PATCH] Fix crash when leaving the editor if the arena had no custom celestial vault (introduced with 05db5a) --- src/editor/editor_main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/editor_main.lua b/src/editor/editor_main.lua index 37092a6..a67737a 100755 --- a/src/editor/editor_main.lua +++ b/src/editor/editor_main.lua @@ -166,7 +166,7 @@ function arena_lib.quit_editor(player) player:set_pos(pos) -- ripristino volta celeste - if next(arena.celestial_vault) then + if arena.celestial_vault then player:set_sky(celvault.sky) player:set_sun(celvault.sun) player:set_moon(celvault.moon)