Fixed: game crashed when switching off light while shadows were disabled