Skip to content

Commit

Permalink
Fix editor crash when invalid global class script path
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilderin committed Jun 25, 2024
1 parent 25ff130 commit e18db6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e18db6f

Please sign in to comment.