From 9c6c2f09e07e65f7819920c4954a7fd54b37d3f6 Mon Sep 17 00:00:00 2001 From: Angad Kambli Date: Wed, 17 Feb 2021 21:17:57 +0530 Subject: [PATCH] Check parameter validity in `Object::set_script` Fixes #46120. --- core/object/object.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/object/object.cpp b/core/object/object.cpp index c76188a2cd3..4d19a2c75bd 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -836,14 +836,16 @@ void Object::set_script(const Variant &p_script) { return; } + Ref