Fix crash when leaving the editor if the arena had no custom celestial vault (introduced with 05db5a)

master
Zughy 2022-04-11 14:38:14 +02:00
parent d0af793ae0
commit fc9b8eb7df
1 changed files with 1 additions and 1 deletions

View File

@ -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)