You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Merge pull request #59056 from Chaosus/gds_fix_extends_crash
This commit is contained in:
@@ -277,6 +277,7 @@ Error GDScriptAnalyzer::resolve_inheritance(GDScriptParser::ClassNode *p_class,
|
|||||||
base = parser->get_parser()->head->get_datatype();
|
base = parser->get_parser()->head->get_datatype();
|
||||||
} else {
|
} else {
|
||||||
if (p_class->extends.is_empty()) {
|
if (p_class->extends.is_empty()) {
|
||||||
|
push_error("Could not resolve an empty super class path.", p_class);
|
||||||
return ERR_PARSE_ERROR;
|
return ERR_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
const StringName &name = p_class->extends[extends_index++];
|
const StringName &name = p_class->extends[extends_index++];
|
||||||
|
|||||||
Reference in New Issue
Block a user