The court must decide all questions of law which arise in the course of the trial.
Okla. Stat. tit. 22, § 832