Merge pull request #59056 from Chaosus/gds_fix_extends_crash
This commit is contained in:
commit
6cba2143de
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ Error GDScriptAnalyzer::resolve_inheritance(GDScriptParser::ClassNode *p_class,
|
|||
base = parser->get_parser()->head->get_datatype();
|
||||
} else {
|
||||
if (p_class->extends.is_empty()) {
|
||||
push_error("Could not resolve an empty super class path.", p_class);
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
const StringName &name = p_class->extends[extends_index++];
|
||||
|
|
Loading…
Reference in a new issue