From 042b592de540ac9792348086c4edfd307cc4fc51 Mon Sep 17 00:00:00 2001 From: Micky Date: Fri, 23 Sep 2022 13:58:31 +0200 Subject: [PATCH] Fix crash when ScriptEditor accesses Script with no language set --- editor/plugins/script_editor_plugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 342300a06..38c1af483 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -3631,8 +3631,9 @@ bool ScriptEditorPlugin::handles(Object *p_object) const { return true; } - if (Object::cast_to