From eccc802d7e93fee5b1523a3ce5539aebedf1a8e7 Mon Sep 17 00:00:00 2001 From: Micky Date: Fri, 23 Sep 2022 13:58:31 +0200 Subject: [PATCH] [3.x] 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 38b3799fc3e..72cd8febe27 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -3595,8 +3595,9 @@ bool ScriptEditorPlugin::handles(Object *p_object) const { return true; } - if (Object::cast_to