Skip to content

Commit

Permalink
Merge pull request #93575 from Hilderin/fix-editor-crash-on-invalid-g…
Browse files Browse the repository at this point in the history
…lobal-class-path

Fix editor crash when invalid global class script path
  • Loading branch information
akien-mga committed Jun 26, 2024
2 parents 2161f98 + e18db6f commit 97e4ed4
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 97e4ed4

Please sign in to comment.