Merge pull request #93575 from Hilderin/fix-editor-crash-on-invalid-global-class-path

Fix editor crash when invalid global class script path
This commit is contained in:
Rémi Verschelde 2024-06-26 11:08:41 +02:00
commit 97e4ed4348
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -5527,6 +5527,9 @@ bool GDScriptAnalyzer::check_type_compatibility(const GDScriptParser::DataType &
// A script type cannot be a subtype of a GDScript class.
return false;
}
if (p_source.script_type.is_null()) {
return false;
}
if (p_source.is_meta_type) {
src_native = p_source.script_type->get_class_name();
} else {