You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix editor crash when invalid global class script path
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user